summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-11-14 16:37:20 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-11-14 16:37:20 +0100
commited5f93850fda13816d7da7252079d0c4a5e414cd (patch)
treeee017ee11dc3334f0b9dce9188a5c409bc7e2e12 /efl
parent435e57ca448bf21d885e8405e2e4bd08af46827a (diff)
New 1.16 API: Elm.Object.focus_region_show_mode
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/object.pxi23
-rw-r--r--efl/elementary/object_cdef.pxi8
2 files changed, 31 insertions, 0 deletions
diff --git a/efl/elementary/object.pxi b/efl/elementary/object.pxi
index a2076a2..3ed8cef 100644
--- a/efl/elementary/object.pxi
+++ b/efl/elementary/object.pxi
@@ -943,6 +943,29 @@ cdef class Object(SmartObject):
943 def focus_move_policy_set(self, Elm_Focus_Move_Policy policy): 943 def focus_move_policy_set(self, Elm_Focus_Move_Policy policy):
944 elm_object_focus_move_policy_set(self.obj, policy) 944 elm_object_focus_move_policy_set(self.obj, policy)
945 945
946 property focus_region_show_mode:
947 """The focus movement policy for the object.
948
949 When the focus is move to the object in scroller, it is scrolled to
950 show the focus region as a widget. If the focus region want to be shown
951 as an item, set the mode ELM_FOCUS_REGION_SHOW_ITEM. If then, it will
952 be scrolled as an item.
953
954 :type: :ref:`Elm_Focus_Region_Show_Mode`
955
956 .. versionadded:: 1.16
957
958 """
959 def __get__(self):
960 return elm_object_focus_region_show_mode_get(self.obj)
961
962 def __set__(self, Elm_Focus_Region_Show_Mode mode):
963 elm_object_focus_region_show_mode_set(self.obj, mode)
964
965 def focus_region_show_mode_get(self):
966 return elm_object_focus_region_show_mode_get(self.obj)
967 def focus_region_show_mode_set(self, Elm_Focus_Region_Show_Mode mode):
968 elm_object_focus_region_show_mode_set(self.obj, mode)
946 969
947 # 970 #
948 # Mirroring 971 # Mirroring
diff --git a/efl/elementary/object_cdef.pxi b/efl/elementary/object_cdef.pxi
index 476444c..877c954 100644
--- a/efl/elementary/object_cdef.pxi
+++ b/efl/elementary/object_cdef.pxi
@@ -39,6 +39,12 @@ cdef extern from "Elementary.h":
39 ctypedef enum Elm_Focus_Move_Policy: 39 ctypedef enum Elm_Focus_Move_Policy:
40 pass 40 pass
41 41
42 cpdef enum Elm_Focus_Region_Show_Mode:
43 ELM_FOCUS_REGION_SHOW_WIDGET
44 ELM_FOCUS_REGION_SHOW_ITEM
45 ctypedef enum Elm_Focus_Region_Show_Mode:
46 pass
47
42 cpdef enum Elm_Focus_Autoscroll_Mode: 48 cpdef enum Elm_Focus_Autoscroll_Mode:
43 ELM_FOCUS_AUTOSCROLL_MODE_SHOW 49 ELM_FOCUS_AUTOSCROLL_MODE_SHOW
44 ELM_FOCUS_AUTOSCROLL_MODE_NONE 50 ELM_FOCUS_AUTOSCROLL_MODE_NONE
@@ -173,6 +179,8 @@ cdef extern from "Elementary.h":
173 Elm_Object_Item * elm_object_focused_item_get(const Evas_Object *obj) 179 Elm_Object_Item * elm_object_focused_item_get(const Evas_Object *obj)
174 void elm_object_focus_move_policy_set(Evas_Object *obj, Elm_Focus_Move_Policy policy) 180 void elm_object_focus_move_policy_set(Evas_Object *obj, Elm_Focus_Move_Policy policy)
175 Elm_Focus_Move_Policy elm_object_focus_move_policy_get(Evas_Object *obj) 181 Elm_Focus_Move_Policy elm_object_focus_move_policy_get(Evas_Object *obj)
182 void elm_object_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode)
183 Elm_Focus_Region_Show_Mode elm_object_focus_region_show_mode_get(const Evas_Object *obj)
176 184
177 # Object - Mirroring (elm_mirroring.h) 185 # Object - Mirroring (elm_mirroring.h)
178 Eina_Bool elm_object_mirrored_get(const Evas_Object *obj) 186 Eina_Bool elm_object_mirrored_get(const Evas_Object *obj)