2017-08-29 03:04:15 -07:00
|
|
|
enum Efl.Ui.Textpath.Direction {
|
2017-08-31 02:47:03 -07:00
|
|
|
[[Textpath direction]]
|
|
|
|
cw, [[Clockwise]]
|
|
|
|
ccw [[Counter-clockwise]]
|
2017-08-29 03:04:15 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2017-08-31 02:58:52 -07:00
|
|
|
@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]]
|
2017-08-29 03:04:15 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property autofit {
|
|
|
|
[[The ability to fit the text within the path.
|
2017-08-31 02:58:52 -07:00
|
|
|
Set it to $true to let text occupy only portion
|
2017-08-29 03:04:15 -07:00
|
|
|
same as its size. Otherwise, text will occupied the whole path.
|
2017-08-31 02:58:52 -07:00
|
|
|
By default, it is $true.]]
|
2017-08-29 03:04:15 -07:00
|
|
|
values {
|
2017-08-31 02:58:52 -07:00
|
|
|
autofit: bool; [[Autofit enabled if $true, $false otherwise]]
|
2017-08-29 03:04:15 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property slice_number {
|
|
|
|
[[The number of slices. The larger the number of slice_num is,
|
|
|
|
The better the text follows the path.]]
|
|
|
|
values {
|
2017-08-31 02:58:52 -07:00
|
|
|
slice_no: int; [[Number of slices]]
|
2017-08-29 03:04:15 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@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;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Efl.Gfx.position { set; }
|
|
|
|
Efl.Gfx.size { set; }
|
|
|
|
}
|
|
|
|
}
|