summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_textpath.eo
blob: 40743bba8060be5b8fea8e8e1f498ee91a6e845b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
enum Efl.Ui.Textpath.Direction {
    [[Textpath direction]]
    cw, [[Clockwise]]
    ccw [[Counter-clockwise]]
}

class Efl.Ui.Textpath (Efl.Ui.Layout, Efl.Object, Efl.Text, Efl.Gfx.Path)
{
   [[Efl Ui Textpath class]]
   methods {
      circle_set {
         [[Set a circle with given center, radius, and start angle.]]
         params {
            @in x: double; [[X coordinate of center]]
            @in y: double; [[Y coordinate of center]]
            @in radius: double; [[Radius of the circle]]
            @in start_angle: double; [[Start angle of the circle]]
            @in direction: Efl.Ui.Textpath.Direction; [[Textpath direction]]
         }
      }
      @property autofit {
         [[The ability to fit the text within the path.
           Set it to $true to let text occupy only portion
           same as its size. Otherwise, text will occupied the whole path.
           By default, it is $true.]]
         values {
            autofit: bool; [[Autofit enabled if $true, $false otherwise]]
         }
      }
      @property slice_number {
         [[The number of slices. The larger the number of slice_num is,
           The better the text follows the path.]]
         values {
            slice_no: int; [[Number of slices]]
         }
      }
      @property ellipsis {
         [[Control the ellipsis behavior of the textpath.]]
         set {
         }
         get {
         }
         values {
            ellipsis: bool; [[To ellipsis text or not]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Canvas.Group.group_calculate;
      Efl.Text.text {get; set;}
      Efl.Part.part;
      Efl.Ui.Widget.theme_apply;
      Efl.Gfx.position { set; }
      Efl.Gfx.size { set; }
   }
}