aboutsummaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2016-03-11 16:11:00 +0830
committerJi-Youn Park <jy0703.park@samsung.com>2016-03-17 16:50:16 +0830
commite2efc6d6d1ebd432f2b3271e22a3e2ba44c474eb (patch)
tree0d3f6473d1050c3e2ecdfa95cdd6e2c4ff34c3ff /legacy
parentElm_glview: change method from changed_set to draw_request_set (diff)
downloadefl-e2efc6d6d1ebd432f2b3271e22a3e2ba44c474eb.tar.gz
Elm_glveiw: change elm_glview_draw_request_set to elm_glview_draw_request.
change draw_reqeuest property to method.
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elm_glview.c10
-rw-r--r--legacy/elementary/src/lib/elm_glview.eo10
2 files changed, 9 insertions, 11 deletions
diff --git a/legacy/elementary/src/lib/elm_glview.c b/legacy/elementary/src/lib/elm_glview.c
index e16eab5ced..f3f7c12ee2 100644
--- a/legacy/elementary/src/lib/elm_glview.c
+++ b/legacy/elementary/src/lib/elm_glview.c
@@ -79,7 +79,7 @@ _glview_update_surface(Evas_Object *obj)
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_draw_request_set(obj);
+ elm_glview_draw_request(obj);
// fake a resize event so that clients can reconfigure their viewport
sd->resized = EINA_TRUE;
@@ -313,7 +313,7 @@ elm_glview_changed_set(Evas_Object *obj)
{
ELM_GLVIEW_CHECK(obj);
- elm_glview_draw_request_set(obj);
+ elm_glview_draw_request(obj);
}
EOLIAN static void
@@ -439,7 +439,7 @@ _elm_glview_resize_policy_set(Eo *obj, Elm_Glview_Data *sd, Elm_GLView_Resize_Po
case ELM_GLVIEW_RESIZE_POLICY_SCALE:
sd->scale_policy = policy;
_glview_update_surface(obj);
- elm_glview_draw_request_set(obj);
+ elm_glview_draw_request(obj);
return EINA_TRUE;
default:
@@ -478,7 +478,7 @@ _elm_glview_size_set(Eo *obj, Elm_Glview_Data *sd, int w, int h)
sd->h = h;
_glview_update_surface(obj);
- elm_glview_draw_request_set(obj);
+ elm_glview_draw_request(obj);
}
EOLIAN static void
@@ -515,7 +515,7 @@ _elm_glview_render_func_set(Eo *obj EINA_UNUSED, Elm_Glview_Data *sd, Elm_GLView
}
EOLIAN static void
-_elm_glview_draw_request_set(Eo *obj, Elm_Glview_Data *sd)
+_elm_glview_draw_request(Eo *obj, Elm_Glview_Data *sd)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
diff --git a/legacy/elementary/src/lib/elm_glview.eo b/legacy/elementary/src/lib/elm_glview.eo
index 20c44abf26..4250dfed20 100644
--- a/legacy/elementary/src/lib/elm_glview.eo
+++ b/legacy/elementary/src/lib/elm_glview.eo
@@ -122,11 +122,6 @@ class Elm.Glview (Elm.Widget)
policy: Elm.GLView.Resize.Policy; [[The scaling policy.]]
}
}
- @property draw_request {
- set {
- [[Notifies that there has been changes in the GLView.]]
- }
- }
@property resize_func {
set {
[[Set the resize function that gets called when resize happens.
@@ -208,7 +203,7 @@ class Elm.Glview (Elm.Widget)
The render function gets called in the main loop but whether
it runs depends on the rendering policy and whether
- @.draw_request.set gets called.
+ @.draw_request called.
]]
}
values {
@@ -249,6 +244,9 @@ class Elm.Glview (Elm.Widget)
return: int; [[A window rotation in degrees (0, 90, 180 or 270).]]
}
}
+ draw_request {
+ [[Notifies that there has been changes in the GLView.]]
+ }
}
implements {
class.constructor;