sd->config->options_bits = opt;
evas_gl_native_surface_get(sd->evasgl, sd->surface, &ns);
evas_object_image_native_surface_set(wd->resize_obj, &ns);
- elm_glview_changed_set(obj);
+ elm_glview_draw_request_set(obj);
// fake a resize event so that clients can reconfigure their viewport
sd->resized = EINA_TRUE;
return obj;
}
+EAPI void
+elm_glview_changed_set(Evas_Object *obj)
+{
+ ELM_GLVIEW_CHECK(obj);
+
+ elm_glview_draw_request_set(obj);
+}
+
EOLIAN static void
_elm_glview_version_constructor(Eo *obj, Elm_Glview_Data *sd,
Evas_GL_Context_Version version)
case ELM_GLVIEW_RESIZE_POLICY_SCALE:
sd->scale_policy = policy;
_glview_update_surface(obj);
- elm_glview_changed_set(obj);
+ elm_glview_draw_request_set(obj);
return EINA_TRUE;
default:
sd->h = h;
_glview_update_surface(obj);
- elm_glview_changed_set(obj);
+ elm_glview_draw_request_set(obj);
}
EOLIAN static void
}
EOLIAN static void
-_elm_glview_changed_set(Eo *obj, Elm_Glview_Data *sd)
+_elm_glview_draw_request_set(Eo *obj, Elm_Glview_Data *sd)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
policy: Elm.GLView.Resize.Policy; [[The scaling policy.]]
}
}
- @property changed {
+ @property draw_request {
set {
[[Notifies that there has been changes in the GLView.]]
}
The render function gets called in the main loop but whether
it runs depends on the rendering policy and whether
- @.changed.set gets called.
+ @.draw_request.set gets called.
]]
}
values {
*/
EAPI Evas_Object *elm_glview_version_add(Evas_Object *parent, Evas_GL_Context_Version version);
+
+/**
+ * Notifies that there has been changes in the GLView.
+ *
+ * @param obj The GLView object
+ *
+ * @ingroup GLView
+ */
+EAPI void elm_glview_changed_set(Evas_Object *obj);
+
#include "elm_glview.eo.legacy.h"