aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-10 20:59:53 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-10 20:59:53 +0200
commita1bef554e06a46a027fe1f6eb0f734d377810142 (patch)
treed5cdc55e6f80c82bb778f5d3fd568e01d0ee6e6a
parentDocs and tests for new elm.Label styles (diff)
downloadpython-efl-a1bef554e06a46a027fe1f6eb0f734d377810142.tar.gz
New 1.18 API: elm.Object.focus_move_policy_automatic
TBH I think that "automatic" should just have been a new value in the elm.Object.focus_move_policy enum.... but I really don't have any more energy to discuss this thing.
-rw-r--r--efl/elementary/object.pxi29
-rw-r--r--efl/elementary/object_cdef.pxi2
2 files changed, 31 insertions, 0 deletions
diff --git a/efl/elementary/object.pxi b/efl/elementary/object.pxi
index c229e2e..22bea09 100644
--- a/efl/elementary/object.pxi
+++ b/efl/elementary/object.pxi
@@ -1016,6 +1016,8 @@ cdef class Object(SmartObject):
.. versionadded:: 1.15
+ .. seealso:: :attr:`focus_move_policy_automatic`
+
"""
def __get__(self):
return elm_object_focus_move_policy_get(self.obj)
@@ -1028,6 +1030,33 @@ cdef class Object(SmartObject):
def focus_move_policy_set(self, Elm_Focus_Move_Policy policy):
elm_object_focus_move_policy_set(self.obj, policy)
+ property focus_move_policy_automatic:
+ """The widget's focus movement policy mode setting.
+
+ When widget in automatic mode, it follows the system focus movement
+ policy mode set by :attr:`efl.elementary.Configuration.focus_move_policy`.
+
+ :type: bool
+
+ .. versionadded:: 1.18
+
+ .. seealso::
+ :attr:`focus_move_policy`
+
+ :attr:`efl.elementary.Configuration.focus_move_policy`
+
+ """
+ def __get__(self):
+ return bool(elm_object_focus_move_policy_automatic_get(self.obj))
+ def __set__(self, bint automatic):
+ elm_object_focus_move_policy_automatic_set(self.obj, automatic)
+
+ def focus_move_policy_automatic_get(self):
+ return bool(elm_object_focus_move_policy_automatic_get(self.obj))
+ def focus_move_policy_automatic_set(self, bint automatic):
+ elm_object_focus_move_policy_automatic_set(self.obj, automatic)
+
+
property focus_region_show_mode:
"""The focus movement policy for the object.
diff --git a/efl/elementary/object_cdef.pxi b/efl/elementary/object_cdef.pxi
index 7de9b10..219d0df 100644
--- a/efl/elementary/object_cdef.pxi
+++ b/efl/elementary/object_cdef.pxi
@@ -183,6 +183,8 @@ cdef extern from "Elementary.h":
Elm_Focus_Move_Policy elm_object_focus_move_policy_get(Evas_Object *obj)
void elm_object_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode)
Elm_Focus_Region_Show_Mode elm_object_focus_region_show_mode_get(const Evas_Object *obj)
+ Eina_Bool elm_object_focus_move_policy_automatic_get(const Evas_Object *obj)
+ void elm_object_focus_move_policy_automatic_set(Evas_Object *obj, Eina_Bool automatic)
# Object - Mirroring (elm_mirroring.h)
Eina_Bool elm_object_mirrored_get(const Evas_Object *obj)