2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Canvas.Vg.Shape extends Efl.Canvas.Vg.Node implements Efl.Gfx.Shape
|
2015-04-03 07:12:59 -07:00
|
|
|
{
|
2016-11-15 02:42:09 -08:00
|
|
|
[[Efl vector graphics shape class]]
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property fill {
|
2018-12-17 22:25:24 -08:00
|
|
|
[[Fill of the shape object]]
|
2015-04-03 07:12:59 -07:00
|
|
|
set {
|
2018-12-17 22:25:24 -08:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
f: Efl.Canvas.Vg.Node; [[Fill object]]
|
|
|
|
}
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property stroke_fill {
|
2018-12-17 22:25:24 -08:00
|
|
|
[[Stroke fill of the shape object]]
|
2015-04-03 07:12:59 -07:00
|
|
|
set {
|
2018-12-17 22:25:24 -08:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
f: Efl.Canvas.Vg.Node; [[Stroke fill object]]
|
|
|
|
}
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property stroke_marker {
|
2018-12-17 22:25:24 -08:00
|
|
|
[[Stroke marker of the shape object]]
|
2015-04-03 07:12:59 -07:00
|
|
|
set {
|
2018-12-17 22:25:24 -08:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
m: Efl.Canvas.Vg.Node; [[Stroke marker object]]
|
|
|
|
}
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2018-02-12 14:14:34 -08:00
|
|
|
Efl.Gfx.Path.interpolate;
|
efl gfx_path: remove EFL_GFX_PATH_EVENT_CHANGED
Summary:
Here is an additional optmization patch for removing
unnecessary updation of path,
For instance, let's assume this scenario:
If one vg object has 20 path nodes(shapes),
and every single nodes would have 50 path changes.
(like, append_cubic, append_rect, append_xxx ...);
There would 1000 events triggering.
Furthermore, if there are 20 vector objects in one view,
hese events would be triggered 20000 in one frame.
It's insane, actually I could figured out that happens.
and it took a lot of cpu consumption in some vector usages.
efl_gfx_path_commit() is my idea to avoid this.
When path is ready, the path need to get this api call in the last
to make object changed properly.
@feature
Reviewers: #committers, cedric
Reviewed By: #committers, cedric
Subscribers: segfaultxavi, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7494
2018-12-27 19:20:15 -08:00
|
|
|
Efl.Gfx.Path.commit;
|
2017-12-10 21:50:22 -08:00
|
|
|
Efl.Duplicate.duplicate;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
|
|
|
}
|