summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-19 20:55:53 +0200
committerdavemds <dave@gurumeditation.it>2014-05-19 20:55:53 +0200
commitcfc20537e920b91e6211a44bc101a90f513d5a3d (patch)
treed538fee267a482137bf6562884a04ba26ee2c738
parent2967438dca16d2fd6d5648dd944a16f27a0c251b (diff)
New Config.focus_autoscroll_mode property
-rw-r--r--efl/elementary/configuration.pxd6
-rw-r--r--efl/elementary/configuration.pyx20
-rw-r--r--efl/elementary/enums.pxd5
-rw-r--r--efl/elementary/object.pyx28
4 files changed, 57 insertions, 2 deletions
diff --git a/efl/elementary/configuration.pxd b/efl/elementary/configuration.pxd
index 8e18558..01143b2 100644
--- a/efl/elementary/configuration.pxd
+++ b/efl/elementary/configuration.pxd
@@ -1,5 +1,6 @@
1from efl.evas cimport Eina_Bool, Eina_List, Evas_Coord, Evas_Font_Size 1from efl.evas cimport Eina_Bool, Eina_List, Evas_Coord, Evas_Font_Size
2from enums cimport Elm_Softcursor_Mode, Elm_Focus_Move_Policy 2from enums cimport Elm_Softcursor_Mode, Elm_Focus_Move_Policy, \
3 Elm_Focus_Autoscroll_Mode
3 4
4cdef extern from "Elementary.h": 5cdef extern from "Elementary.h":
5 ctypedef struct Elm_Font_Overlay: 6 ctypedef struct Elm_Font_Overlay:
@@ -119,7 +120,8 @@ cdef extern from "Elementary.h":
119 void elm_config_focus_move_policy_set(Elm_Focus_Move_Policy policy) 120 void elm_config_focus_move_policy_set(Elm_Focus_Move_Policy policy)
120 Eina_Bool elm_config_item_select_on_focus_disabled_get() 121 Eina_Bool elm_config_item_select_on_focus_disabled_get()
121 void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled) 122 void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled)
122 123 Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get()
124 void elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode)
123 125
124 Eina_Bool elm_config_mirrored_get() 126 Eina_Bool elm_config_mirrored_get()
125 void elm_config_mirrored_set(Eina_Bool mirrored) 127 void elm_config_mirrored_set(Eina_Bool mirrored)
diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index 91c1407..55e05ad 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -919,6 +919,26 @@ cdef class Configuration(object):
919 def __set__(self, bint disabled): 919 def __set__(self, bint disabled):
920 elm_config_item_select_on_focus_disabled_set(disabled) 920 elm_config_item_select_on_focus_disabled_set(disabled)
921 921
922
923 property focus_autoscroll_mode:
924 """Focus Autoscroll Mode
925
926 When a region or an item is focused and it resides inside any scroller,
927 elementary will automatically scroll the focused area to the visible
928 viewport.
929
930 :type: Elm_Focus_Autoscroll_Mode
931
932 .. versionadded:: 1.10
933
934 """
935 def __get__(self):
936 return elm_config_focus_autoscroll_mode_get()
937 def __set__(self, Elm_Focus_Autoscroll_Mode mode):
938 elm_config_focus_autoscroll_mode_set(mode)
939
940
941
922 property mirrored: 942 property mirrored:
923 """Get the system mirrored mode. This determines the default 943 """Get the system mirrored mode. This determines the default
924 mirrored mode of widgets. 944 mirrored mode of widgets.
diff --git a/efl/elementary/enums.pxd b/efl/elementary/enums.pxd
index 247236d..5d04f1f 100644
--- a/efl/elementary/enums.pxd
+++ b/efl/elementary/enums.pxd
@@ -165,6 +165,11 @@ cdef extern from "Elementary.h":
165 ELM_FOCUS_MOVE_POLICY_CLICK 165 ELM_FOCUS_MOVE_POLICY_CLICK
166 ELM_FOCUS_MOVE_POLICY_IN 166 ELM_FOCUS_MOVE_POLICY_IN
167 167
168 ctypedef enum Elm_Focus_Autoscroll_Mode:
169 ELM_FOCUS_AUTOSCROLL_MODE_SHOW
170 ELM_FOCUS_AUTOSCROLL_MODE_NONE
171 ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
172
168 ctypedef enum Elm_Genlist_Item_Type: 173 ctypedef enum Elm_Genlist_Item_Type:
169 ELM_GENLIST_ITEM_NONE 174 ELM_GENLIST_ITEM_NONE
170 ELM_GENLIST_ITEM_TREE 175 ELM_GENLIST_ITEM_TREE
diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx
index 922c30d..360e2a1 100644
--- a/efl/elementary/object.pyx
+++ b/efl/elementary/object.pyx
@@ -119,6 +119,30 @@ Focus move policy
119 119
120 .. versionadded:: 1.10 120 .. versionadded:: 1.10
121 121
122.. _Elm_Focus_Autoscroll_Mode
123
124Focus autoscroll mode
125=====================
126
127.. data:: ELM_FOCUS_AUTOSCROLL_MODE_SHOW
128
129 Directly show the focused region or item automatically.
130
131 .. versionadded:: 1.10
132
133.. data:: ELM_FOCUS_AUTOSCROLL_MODE_NONE
134
135 Do not show the focused region or item automatically.
136
137 .. versionadded:: 1.10
138
139.. data:: ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
140
141 Bring_in the focused region or item automatically which might
142 invole the scrolling
143
144 .. versionadded:: 1.10
145
122.. _Elm_Input_Event_Type: 146.. _Elm_Input_Event_Type:
123 147
124Input event types 148Input event types
@@ -269,6 +293,10 @@ ELM_FOCUS_LEFT = enums.ELM_FOCUS_LEFT
269ELM_FOCUS_MOVE_POLICY_CLICK = enums.ELM_FOCUS_MOVE_POLICY_CLICK 293ELM_FOCUS_MOVE_POLICY_CLICK = enums.ELM_FOCUS_MOVE_POLICY_CLICK
270ELM_FOCUS_MOVE_POLICY_IN = enums.ELM_FOCUS_MOVE_POLICY_IN 294ELM_FOCUS_MOVE_POLICY_IN = enums.ELM_FOCUS_MOVE_POLICY_IN
271 295
296ELM_FOCUS_AUTOSCROLL_MODE_SHOW = enums.ELM_FOCUS_AUTOSCROLL_MODE_SHOW
297ELM_FOCUS_AUTOSCROLL_MODE_NONE = enums.ELM_FOCUS_AUTOSCROLL_MODE_NONE
298ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN = enums.ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
299
272EVAS_CALLBACK_KEY_DOWN = evasenums.EVAS_CALLBACK_KEY_DOWN 300EVAS_CALLBACK_KEY_DOWN = evasenums.EVAS_CALLBACK_KEY_DOWN
273EVAS_CALLBACK_KEY_UP = evasenums.EVAS_CALLBACK_KEY_UP 301EVAS_CALLBACK_KEY_UP = evasenums.EVAS_CALLBACK_KEY_UP
274EVAS_CALLBACK_MOUSE_WHEEL = evasenums.EVAS_CALLBACK_MOUSE_WHEEL 302EVAS_CALLBACK_MOUSE_WHEEL = evasenums.EVAS_CALLBACK_MOUSE_WHEEL