summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-08-03 16:09:16 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-08-03 16:09:16 +0200
commit130f1db451c01270554b2ac02fc4b0f7e6d49beb (patch)
treee5d1810beff303b3f961b78a07a01db3515e24f6 /efl
parent97dadf30da441d91ba46389c9f8b711ad611aca6 (diff)
New 1.15 API: Object.focus_move_policy, with test.
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/object.pxi20
-rw-r--r--efl/elementary/object.py1
-rw-r--r--efl/elementary/object_cdef.pxi3
3 files changed, 24 insertions, 0 deletions
diff --git a/efl/elementary/object.pxi b/efl/elementary/object.pxi
index f03f775..7d3c5e4 100644
--- a/efl/elementary/object.pxi
+++ b/efl/elementary/object.pxi
@@ -924,6 +924,26 @@ cdef class Object(SmartObject):
924 def tree_focus_allow_get(self): 924 def tree_focus_allow_get(self):
925 return bool(elm_object_tree_focus_allow_get(self.obj)) 925 return bool(elm_object_tree_focus_allow_get(self.obj))
926 926
927 property focus_move_policy:
928 """The focus movement policy for the object.
929
930 :type: :ref:`Elm_Focus_Move_Policy`
931
932 .. versionadded:: 1.15
933
934 """
935 def __get__(self):
936 return elm_object_focus_move_policy_get(self.obj)
937
938 def __set__(self, Elm_Focus_Move_Policy policy):
939 elm_object_focus_move_policy_set(self.obj, policy)
940
941 def focus_move_policy_get(self):
942 return elm_object_focus_move_policy_get(self.obj)
943 def focus_move_policy_set(self, Elm_Focus_Move_Policy policy):
944 elm_object_focus_move_policy_set(self.obj, policy)
945
946
927 # 947 #
928 # Mirroring 948 # Mirroring
929 # ========= 949 # =========
diff --git a/efl/elementary/object.py b/efl/elementary/object.py
index d0fc55d..1345a87 100644
--- a/efl/elementary/object.py
+++ b/efl/elementary/object.py
@@ -7,6 +7,7 @@ from . import ELM_FOCUS_LEFT
7 7
8from . import ELM_FOCUS_MOVE_POLICY_CLICK 8from . import ELM_FOCUS_MOVE_POLICY_CLICK
9from . import ELM_FOCUS_MOVE_POLICY_IN 9from . import ELM_FOCUS_MOVE_POLICY_IN
10from . import ELM_FOCUS_MOVE_POLICY_KEY_ONLY
10 11
11from . import ELM_FOCUS_AUTOSCROLL_MODE_SHOW 12from . import ELM_FOCUS_AUTOSCROLL_MODE_SHOW
12from . import ELM_FOCUS_AUTOSCROLL_MODE_NONE 13from . import ELM_FOCUS_AUTOSCROLL_MODE_NONE
diff --git a/efl/elementary/object_cdef.pxi b/efl/elementary/object_cdef.pxi
index 8558f45..8e986d7 100644
--- a/efl/elementary/object_cdef.pxi
+++ b/efl/elementary/object_cdef.pxi
@@ -35,6 +35,7 @@ cdef extern from "Elementary.h":
35 cpdef enum Elm_Focus_Move_Policy: 35 cpdef enum Elm_Focus_Move_Policy:
36 ELM_FOCUS_MOVE_POLICY_CLICK 36 ELM_FOCUS_MOVE_POLICY_CLICK
37 ELM_FOCUS_MOVE_POLICY_IN 37 ELM_FOCUS_MOVE_POLICY_IN
38 ELM_FOCUS_MOVE_POLICY_KEY_ONLY
38 ctypedef enum Elm_Focus_Move_Policy: 39 ctypedef enum Elm_Focus_Move_Policy:
39 pass 40 pass
40 41
@@ -156,6 +157,8 @@ cdef extern from "Elementary.h":
156 Eina_Bool elm_object_focus_highlight_style_set(Evas_Object *obj, const char *style) 157 Eina_Bool elm_object_focus_highlight_style_set(Evas_Object *obj, const char *style)
157 const char * elm_object_focus_highlight_style_get(const Evas_Object *obj) 158 const char * elm_object_focus_highlight_style_get(const Evas_Object *obj)
158 Elm_Object_Item * elm_object_focused_item_get(const Evas_Object *obj) 159 Elm_Object_Item * elm_object_focused_item_get(const Evas_Object *obj)
160 void elm_object_focus_move_policy_set(Evas_Object *obj, Elm_Focus_Move_Policy policy)
161 Elm_Focus_Move_Policy elm_object_focus_move_policy_get(Evas_Object *obj)
159 162
160 # Object - Mirroring (elm_mirroring.h) 163 # Object - Mirroring (elm_mirroring.h)
161 Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) 164 Eina_Bool elm_object_mirrored_get(const Evas_Object *obj)