forked from enlightenment/efl
evas: add a way to know if we are already computing smart object calc.
This commit is contained in:
parent
f6c465dc59
commit
ea5675a6a0
|
@ -757,6 +757,14 @@ class Evas.Canvas (Efl.Object, Efl.Canvas, Efl.Animator, Efl.Input.Interface,
|
||||||
all smart objects in the canvas.
|
all smart objects in the canvas.
|
||||||
]]
|
]]
|
||||||
}
|
}
|
||||||
|
@property smart_objects_calculate {
|
||||||
|
get {
|
||||||
|
[[Get if the canvas is currently calculating smart objects.]]
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
calculating: bool; [[The state of computation of smart objects.]]
|
||||||
|
}
|
||||||
|
}
|
||||||
/* FIXME: The below function is only for efl.ui.win */
|
/* FIXME: The below function is only for efl.ui.win */
|
||||||
touch_point_list_nth_xy_get {
|
touch_point_list_nth_xy_get {
|
||||||
[[This function returns the nth touch point's coordinates.
|
[[This function returns the nth touch point's coordinates.
|
||||||
|
|
|
@ -987,6 +987,12 @@ _evas_canvas_smart_objects_calculate(Eo *eo_e, Evas_Public_Data *o EINA_UNUSED)
|
||||||
evas_call_smarts_calculate(eo_e);
|
evas_call_smarts_calculate(eo_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Eina_Bool
|
||||||
|
_evas_canvas_smart_objects_calculate_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
|
||||||
|
{
|
||||||
|
return !!e->in_smart_calc;
|
||||||
|
}
|
||||||
|
|
||||||
EOLIAN int
|
EOLIAN int
|
||||||
_evas_canvas_smart_objects_calculate_count_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
|
_evas_canvas_smart_objects_calculate_count_get(Eo *eo_e EINA_UNUSED, Evas_Public_Data *e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue