summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-07-31 15:25:58 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-08-01 13:17:10 -0700
commitea5675a6a0a281567735164ad2bd7841f77cf17e (patch)
tree5807d271a3e5b96b18864468724bd5b1ed794bec
parentf6c465dc5971a0ae0505c74ab010bcd8c6fc5101 (diff)
evas: add a way to know if we are already computing smart object calc.
-rw-r--r--src/lib/evas/canvas/evas_canvas.eo8
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_canvas.eo b/src/lib/evas/canvas/evas_canvas.eo
index 139112d300..94dee0fc77 100644
--- a/src/lib/evas/canvas/evas_canvas.eo
+++ b/src/lib/evas/canvas/evas_canvas.eo
@@ -757,6 +757,14 @@ class Evas.Canvas (Efl.Object, Efl.Canvas, Efl.Animator, Efl.Input.Interface,
757 all smart objects in the canvas. 757 all smart objects in the canvas.
758 ]] 758 ]]
759 } 759 }
760 @property smart_objects_calculate {
761 get {
762 [[Get if the canvas is currently calculating smart objects.]]
763 }
764 values {
765 calculating: bool; [[The state of computation of smart objects.]]
766 }
767 }
760 /* FIXME: The below function is only for efl.ui.win */ 768 /* FIXME: The below function is only for efl.ui.win */
761 touch_point_list_nth_xy_get { 769 touch_point_list_nth_xy_get {
762 [[This function returns the nth touch point's coordinates. 770 [[This function returns the nth touch point's coordinates.
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index 0b42894cb9..b754320955 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -987,6 +987,12 @@ _evas_canvas_smart_objects_calculate(Eo *eo_e, Evas_Public_Data *o EINA_UNUSED)
987 evas_call_smarts_calculate(eo_e); 987 evas_call_smarts_calculate(eo_e);
988} 988}
989 989
990Eina_Bool
991_evas_canvas_smart_objects_calculate_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
992{
993 return !!e->in_smart_calc;
994}
995
990EOLIAN int 996EOLIAN int
991_evas_canvas_smart_objects_calculate_count_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e) 997_evas_canvas_smart_objects_calculate_count_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
992{ 998{