52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
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 {
|
|
circular_set {
|
|
[[Set a circle with given radius and start angle.
|
|
The center of the circle will be decided by the object center position.]]
|
|
params {
|
|
@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; }
|
|
}
|
|
}
|