aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_textpath.eo
blob: 4a56b490a39f64cd8f0874d2efaab301da0a8a4b (plain) (blame)
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
enum @beta Efl.Ui.Textpath_Direction {
    [[Textpath direction]]
    cw, [[Clockwise]]
    ccw, [[Counter-clockwise]]
    cw_center, [[Clockwise, middle of text will be at start angle @since 1.23]]
    ccw_center [[Counter-clockwise, middle of text will be at start angle @since 1.23]]
}

class @beta Efl.Ui.Textpath extends Efl.Ui.Layout_Base implements 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 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.Gfx.Path.commit;
      Efl.Canvas.Group.group_calculate;
      Efl.Text.text {get; set;}
      Efl.Part.part_get;
      Efl.Ui.Widget.theme_apply;
      Efl.Gfx.Entity.position { set; }
      Efl.Gfx.Entity.size { set; }
   }
}