return obj;
}
-EAPI void
-elm_glview_changed_set(Evas_Object *obj)
-{
- ELM_GLVIEW_CHECK(obj);
-
- elm_glview_draw_request(obj);
-}
-
EOLIAN static void
_elm_glview_version_constructor(Eo *obj, Elm_Glview_Data *sd,
Evas_GL_Context_Version version)
}
EOLIAN static void
-_elm_glview_size_set(Eo *obj, Elm_Glview_Data *sd, int w, int h)
+_elm_glview_efl_gfx_view_view_size_set(Eo *obj, Elm_Glview_Data *sd, int w, int h)
{
if ((w == sd->w) && (h == sd->h)) return;
}
EOLIAN static void
-_elm_glview_size_get(Eo *obj EINA_UNUSED, Elm_Glview_Data *sd, int *w, int *h)
+_elm_glview_efl_gfx_view_view_size_get(Eo *obj EINA_UNUSED, Elm_Glview_Data *sd, int *w, int *h)
{
if (w) *w = sd->w;
if (h) *h = sd->h;
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
}
+/* Legacy wrappers */
+
+EAPI void
+elm_glview_changed_set(Evas_Object *obj)
+{
+ ELM_GLVIEW_CHECK(obj);
+
+ elm_glview_draw_request(obj);
+}
+
+EAPI void
+elm_glview_size_get(const Elm_Glview *obj, int *w, int *h)
+{
+ efl_gfx_view_size_get(obj, w, h);
+}
+
+EAPI void
+elm_glview_size_set(Elm_Glview *obj, int w, int h)
+{
+ efl_gfx_view_size_set(obj, w, h);
+}
#include "elm_glview.eo.c"
always = 2 [[Render always even when it is not visible]]
}
-class Elm.Glview (Elm.Widget)
+class Elm.Glview (Elm.Widget, Efl.Gfx.View)
{
eo_prefix: elm_obj_glview;
methods {
@in version: Evas_GL_Context_Version;
}
}
- @property size {
- set {
- [[Sets the size of the glview.]]
- }
- get {
- [[Get the size of the glview.
-
- Note: This function returns the actual image size of the
- glview. This means that when the scale policy is set to
- #ELM_GLVIEW_RESIZE_POLICY_SCALE, it'll return the non-scaled
- size.
- ]]
- }
- values {
- w: int; [[Width of the glview object.]]
- h: int; [[Height of the glview object.]]
- }
- }
@property resize_policy {
set {
[[Set the resize policy for the glview object.
Evas.Object_Smart.del;
Evas.Object_Smart.resize;
Elm.Widget.on_focus;
+ Efl.Gfx.View.view_size.get;
+ Efl.Gfx.View.view_size.set;
}
events {
}