forked from enlightenment/efl
evas: move Evas.VG to use Efl.Gfx.View.
This commit is contained in:
parent
a395f5ded5
commit
1fb52dbe71
|
@ -425,16 +425,16 @@ _evas_vg_efl_file_file_get(Eo *obj, Evas_VG_Data *pd EINA_UNUSED,
|
|||
}
|
||||
|
||||
void
|
||||
_evas_vg_size_get(Eo *obj EINA_UNUSED, Evas_VG_Data *pd,
|
||||
unsigned int *w, unsigned int *h)
|
||||
_evas_vg_efl_gfx_view_size_get(Eo *obj EINA_UNUSED, Evas_VG_Data *pd,
|
||||
int *w, int *h)
|
||||
{
|
||||
if (w) *w = pd->width;
|
||||
if (h) *h = pd->height;
|
||||
}
|
||||
|
||||
void
|
||||
_evas_vg_size_set(Eo *obj EINA_UNUSED, Evas_VG_Data *pd,
|
||||
unsigned int w, unsigned int h)
|
||||
_evas_vg_efl_gfx_view_size_set(Eo *obj EINA_UNUSED, Evas_VG_Data *pd,
|
||||
int w, int h)
|
||||
{
|
||||
pd->width = w;
|
||||
pd->height = h;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Evas.VG (Evas.Object, Efl.File, Efl.Gfx.Fill)
|
||||
class Evas.VG (Evas.Object, Efl.File, Efl.Gfx.Fill, Efl.Gfx.View)
|
||||
{
|
||||
legacy_prefix: evas_object_vg;
|
||||
eo_prefix: evas_obj_vg;
|
||||
|
@ -10,26 +10,6 @@ class Evas.VG (Evas.Object, Efl.File, Efl.Gfx.Fill)
|
|||
Evas_VG_Node *container;
|
||||
}
|
||||
}
|
||||
size {
|
||||
get {
|
||||
/*@
|
||||
Get the size as defined in the original data
|
||||
before any scaling (as in the file or when the
|
||||
object were added).
|
||||
*/
|
||||
}
|
||||
set {
|
||||
/*@
|
||||
Set the size defined in the original data
|
||||
before any scaling (as in the file or when the
|
||||
object were added).
|
||||
*/
|
||||
}
|
||||
values {
|
||||
uint w;
|
||||
uint h;
|
||||
}
|
||||
}
|
||||
}
|
||||
implements {
|
||||
Eo.Base.constructor;
|
||||
|
@ -39,5 +19,7 @@ class Evas.VG (Evas.Object, Efl.File, Efl.Gfx.Fill)
|
|||
Efl.File.mmap.get;
|
||||
Efl.Gfx.Fill.fill.set;
|
||||
Efl.Gfx.Fill.fill.get;
|
||||
Efl.Gfx.View.size.set;
|
||||
Efl.Gfx.View.size.get;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue