summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_textpath.eo
blob: 2fadb52677c8a336660de71f2c723f849c6fae5a (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
59
60
61
62
63
64
65
66
67
enum Efl.Ui.Textpath.Orientation {
     left_to_right,
     right_to_left
}

class Efl.Ui.Textpath (Elm.Layout, Efl.Object, Efl.Text, Efl.Gfx.Path)
{
   [[Efl Ui Textpath class]]
   legacy_prefix: elm_textpath;
   methods {
      circle_set {
         [[Set a circle with given center, radius, and start angle.]]
         params {
            @in x: double;
            @in y: double;
            @in radius: double;
            @in start_angle: double;
         }
      }
      @property orientation {
         [[The orientation where text is placed:
           left-to-right or right-to-left]]
         values {
            orient: Efl.Ui.Textpath.Orientation;
         }
      }
      @property autofit {
         [[The ability to fit the text within the path.
           Set it to EINA_TRUE to let text occupy only portion
           same as its size. Otherwise, text will occupied the whole path.
           By default, it is EINA_TRUE.]]
         values {
            autofit: bool;
         }
      }
      @property slice_number {
         [[The number of slices. The larger the number of slice_num is,
           The better the text follow the path.]]
         values {
            slice_no: int;
         }
      }
      @property ellipsis {
         [[Control the ellipsis behavior of the textpath.]]
         set {
         }
         get {
         }
         values {
            ellipsis: bool; [[To ellipsis text or not]]
         }
      }
   }
   implements {
      class.constructor;
      Efl.Object.constructor;
      Efl.Object.destructor;
      Elm.Layout.sizing_eval;
      Efl.Text.text {get; set;}
      Efl.Part.part;
      Elm.Widget.theme_apply;
      Efl.Gfx.position { set; }
      Efl.Gfx.size { set; }
   }
   events {
   }
}