2018-04-09 08:23:34 -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
|
|
|
}
|
|
|
|
|
2018-11-16 01:45:05 -08:00
|
|
|
class Efl.Ui.Textpath (Efl.Ui.Layout, Efl.Text, Efl.Gfx.Path)
|
2017-08-29 03:04:15 -07:00
|
|
|
{
|
|
|
|
[[Efl Ui Textpath class]]
|
elementary textpath: support legacy APIs
Summary:
Efl.Ui.Textpath was added when we were developing new interfaces.
So, basically, it does not support 'legacy' APIs. ex) elm_textpath_add
But, in Tizen, the legacy APIs had been delivered in old version of EFL.
To reduce maintainning cost between the platforms, this patch will be helpful.
@feature
Test Plan: N/A
Reviewers: Hermet, woohyun, zmike, cedric, herdsman
Reviewed By: Hermet
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7033
2018-10-11 23:42:31 -07:00
|
|
|
legacy_prefix: elm_textpath;
|
2017-08-29 03:04:15 -07:00
|
|
|
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]]
|
2018-04-09 08:23:34 -07:00
|
|
|
@in direction: Efl.Ui.Textpath_Direction; [[Textpath direction]]
|
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;}
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2017-08-29 03:04:15 -07:00
|
|
|
}
|
|
|
|
}
|