aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-21 08:48:47 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-21 08:48:47 +0000
commitfaa6d2e91fe6451352807f3a7b141bfc94f2ad8f (patch)
tree92035a1343c6e0696598adbb88cd16f3055ed490 /legacy/elementary/src/lib/elm_win.c
parentelm: Fix division by zero in elm_interface_scroller (diff)
downloadefl-faa6d2e91fe6451352807f3a7b141bfc94f2ad8f.tar.gz
spotted a missing feature not matching with trap stuff. fix.
SVN revision: 75493
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index a8c3f5084a..b5aada81b8 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -131,6 +131,7 @@ struct _Elm_Win_Smart_Data
double aspect;
int size_base_w, size_base_h;
int size_step_w, size_step_h;
+ int norender;
Eina_Bool urgent : 1;
Eina_Bool modal : 1;
Eina_Bool demand_attention : 1;
@@ -3261,6 +3262,43 @@ elm_win_layer_get(const Evas_Object *obj)
}
EAPI void
+elm_win_norender_push(Evas_Object *obj)
+{
+ ELM_WIN_CHECK(obj);
+ ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
+
+ sd->norender++;
+ if (sd->norender == 1) ecore_evas_manual_render_set(sd->ee, EINA_TRUE);
+}
+
+EAPI void
+elm_win_norender_pop(Evas_Object *obj)
+{
+ ELM_WIN_CHECK(obj);
+ ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
+
+ if (sd->norender <= 0) return;
+ sd->norender--;
+ if (sd->norender == 0) ecore_evas_manual_render_set(sd->ee, EINA_FALSE);
+}
+
+EAPI int
+elm_win_norender_get(Evas_Object *obj)
+{
+ ELM_WIN_CHECK(obj) - 1;
+ ELM_WIN_DATA_GET_OR_RETURN_VAL(obj, sd, -1);
+ return sd->norender;
+}
+
+EAPI void
+elm_win_render(Evas_Object *obj)
+{
+ ELM_WIN_CHECK(obj);
+ ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
+ ecore_evas_manual_render(sd->ee);
+}
+
+EAPI void
elm_win_rotation_set(Evas_Object *obj,
int rotation)
{