2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Canvas.Vg.Fill_Mode
|
2017-10-25 04:16:17 -07:00
|
|
|
{
|
|
|
|
[[Enumeration that defines how viewbox will be filled int the vg canvs's viewport.
|
|
|
|
default Fill_Mode is $none]]
|
|
|
|
none, [[Don't scale the viewbox. Placed it inside viewport taking
|
|
|
|
align property into account]]
|
|
|
|
stretch, [[Scale the viewbox so that it matches
|
|
|
|
the canvas viewport.
|
|
|
|
Aaspect ratio might be changed.]]
|
|
|
|
meet, [[Scale the viewbox
|
|
|
|
so that it fits inside canvas viewport
|
|
|
|
while maintaining the aspect ratio.
|
|
|
|
At least one of the dimensions of the viewbox
|
|
|
|
should be equal to the corresponding dimension
|
|
|
|
of the viewport.]]
|
|
|
|
slice [[Scale the viewbox
|
|
|
|
so that it covers the entire canvas viewport
|
|
|
|
while maintaining the aspect ratio.
|
|
|
|
At least one of the dimensions of the viewbox
|
|
|
|
should be equal to the corresponding
|
|
|
|
dimension of the viewport.]]
|
|
|
|
}
|
|
|
|
|
2019-06-21 01:32:37 -07:00
|
|
|
class @beta Efl.Canvas.Vg.Object extends Efl.Canvas.Object implements Efl.File, Efl.File_Save,
|
|
|
|
Efl.Gfx.Frame_Controller
|
2015-04-03 07:12:59 -07:00
|
|
|
{
|
2016-11-15 02:42:09 -08:00
|
|
|
[[Efl vector graphics class]]
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
2017-10-25 04:16:17 -07:00
|
|
|
@property fill_mode {
|
|
|
|
[[Control how the viewbox is mapped to the vg canvas's viewport.]]
|
|
|
|
values {
|
|
|
|
fill_mode: Efl.Canvas.Vg.Fill_Mode; [[Fill mode type]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property viewbox {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[The viewbox for the evas vg canvas.
|
|
|
|
viewbox if set should be mapped to the canvas geometry when rendering the vg tree.]]
|
2017-10-25 04:16:17 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
viewbox: Eina.Rect; [[viewbox for the vg canvas]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property viewbox_align {
|
|
|
|
[[Control how the viewbox is positioned inside the viewport.]]
|
|
|
|
values {
|
2018-01-16 07:10:43 -08:00
|
|
|
align_x: double(0.0); [[Alignment in the horizontal axis (0 <= align_x <= 1).]]
|
|
|
|
align_y: double(0.0); [[Alignment in the vertical axis (0 <= align_y <= 1).]]
|
2017-10-25 04:16:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property root_node {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[The root node of the evas_object_vg.
|
|
|
|
|
|
|
|
Note: To manually create the shape object and show in the Vg
|
|
|
|
object canvas you must create the hierarchy and set as root node.
|
|
|
|
|
|
|
|
It takes the ownership of the root node. ]]
|
2015-04-03 07:30:38 -07:00
|
|
|
get {
|
2017-10-23 11:05:34 -07:00
|
|
|
}
|
|
|
|
set {
|
2015-04-03 07:30:38 -07:00
|
|
|
}
|
|
|
|
values {
|
2018-04-04 04:38:34 -07:00
|
|
|
root: Efl.Canvas.Vg.Node; [[Root node of the VG canvas.]]
|
2015-04-03 07:30:38 -07:00
|
|
|
}
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
2019-06-21 01:32:37 -07:00
|
|
|
@property default_size {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[The default vector size that specified from vector resource.
|
|
|
|
@since 1.22]]
|
2019-06-21 01:32:37 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
size: Eina.Size2D;
|
|
|
|
}
|
|
|
|
}
|
2015-04-03 07:30:38 -07:00
|
|
|
}
|
2015-04-03 07:12:59 -07:00
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.finalize;
|
2019-09-26 22:19:38 -07:00
|
|
|
Efl.Object.invalidate;
|
2019-02-27 10:17:09 -08:00
|
|
|
Efl.File.load;
|
|
|
|
Efl.File.unload;
|
2019-03-11 20:53:35 -07:00
|
|
|
Efl.File.file { set; }
|
2019-01-30 06:05:05 -08:00
|
|
|
Efl.File_Save.save;
|
2019-06-21 01:32:37 -07:00
|
|
|
Efl.Gfx.Frame_Controller.animated { get; }
|
|
|
|
Efl.Gfx.Frame_Controller.frame { get; set; }
|
|
|
|
Efl.Gfx.Frame_Controller.frame_count { get; }
|
|
|
|
Efl.Gfx.Frame_Controller.loop_type { get; }
|
|
|
|
Efl.Gfx.Frame_Controller.loop_count { get; }
|
|
|
|
Efl.Gfx.Frame_Controller.frame_duration { get; }
|
2019-11-11 21:30:10 -08:00
|
|
|
Efl.Gfx.Frame_Controller.sector { set; get; }
|
2015-04-03 07:12:59 -07:00
|
|
|
}
|
2015-04-03 07:30:49 -07:00
|
|
|
}
|