summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-04 15:52:53 +0200
committerdavemds <dave@gurumeditation.it>2014-05-04 15:52:53 +0200
commitf8e87104124eadd060fed5f9a710347647a297af (patch)
tree4c0f8df7668fb4866a00274694c1878e5c1d1d25
parent755f7b7b2141deb4ca471c47a1de97a9776d0340 (diff)
New Configuration properties.
* Configuration.focus_highlight_clip_disabled * Configuration.focus_move_policy * Configuration.focus_on_selection
-rw-r--r--efl/elementary/configuration.pxd10
-rw-r--r--efl/elementary/configuration.pyx63
-rw-r--r--efl/elementary/enums.pxd4
-rw-r--r--efl/elementary/object.pyx20
4 files changed, 96 insertions, 1 deletions
diff --git a/efl/elementary/configuration.pxd b/efl/elementary/configuration.pxd
index 890d3b9..4c292a6 100644
--- a/efl/elementary/configuration.pxd
+++ b/efl/elementary/configuration.pxd
@@ -1,5 +1,5 @@
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 2from enums cimport Elm_Softcursor_Mode, Elm_Focus_Move_Policy
3 3
4cdef extern from "Elementary.h": 4cdef extern from "Elementary.h":
5 ctypedef struct Elm_Font_Overlay: 5 ctypedef struct Elm_Font_Overlay:
@@ -111,6 +111,14 @@ cdef extern from "Elementary.h":
111 void elm_config_focus_highlight_enabled_set(Eina_Bool enable) 111 void elm_config_focus_highlight_enabled_set(Eina_Bool enable)
112 Eina_Bool elm_config_focus_highlight_animate_get() 112 Eina_Bool elm_config_focus_highlight_animate_get()
113 void elm_config_focus_highlight_animate_set(Eina_Bool animate) 113 void elm_config_focus_highlight_animate_set(Eina_Bool animate)
114 Eina_Bool elm_config_focus_highlight_clip_disabled_get()
115 void elm_config_focus_highlight_clip_disabled_set(Eina_Bool disabled)
116 Elm_Focus_Move_Policy elm_config_focus_move_policy_get()
117 void elm_config_focus_move_policy_set(Elm_Focus_Move_Policy policy)
118 Eina_Bool elm_config_item_focus_on_selection_get()
119 void elm_config_item_focus_on_selection_set(Eina_Bool enabled)
120
121
114 Eina_Bool elm_config_mirrored_get() 122 Eina_Bool elm_config_mirrored_get()
115 void elm_config_mirrored_set(Eina_Bool mirrored) 123 void elm_config_mirrored_set(Eina_Bool mirrored)
116 124
diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index 1fe10b3..9de76a2 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -844,6 +844,54 @@ cdef class Configuration(object):
844 def __set__(self, bint animate): 844 def __set__(self, bint animate):
845 elm_config_focus_highlight_animate_set(animate) 845 elm_config_focus_highlight_animate_set(animate)
846 846
847 property focus_highlight_clip_disabled:
848 """Whether the focus highlight clip feature is disabled.
849
850 If disabled return True, else return False.
851 If focus highlight clip feature is not disabled the focus highlight
852 can be clipped.
853
854 :type: bool
855
856 .. versionadded:: 1.10
857
858 """
859 def __get__(self):
860 return bool(elm_config_focus_highlight_clip_disabled_get())
861 def __set__(self, bint disabled):
862 elm_config_focus_highlight_clip_disabled_set(disabled)
863
864 property focus_move_policy:
865 """The focus movement policy.
866
867 How the focus is moved to another object. It can be
868 ELM_FOCUS_MOVE_POLICY_CLICK or ELM_FOCUS_MOVE_POLICY_IN. The first
869 means elementary focus is moved on elementary object click. The
870 second means elementary focus is moved on elementary object mouse in.
871
872 :type: Elm_Focus_Move_Policy
873
874 .. versionadded:: 1.10
875
876 """
877 def __get__(self):
878 return elm_config_focus_move_policy_get()
879 def __set__(self, policy):
880 elm_config_focus_move_policy_set(policy)
881
882 property focus_on_selection:
883 """Elementary item focus on selection.
884
885 :type: bool
886
887 .. versionadded:: 1.10
888
889 """
890 def __get__(self):
891 return bool(elm_config_item_focus_on_selection_get())
892 def __set__(self, bint enabled):
893 elm_config_item_focus_on_selection_set(enabled)
894
847 property mirrored: 895 property mirrored:
848 """Get the system mirrored mode. This determines the default 896 """Get the system mirrored mode. This determines the default
849 mirrored mode of widgets. 897 mirrored mode of widgets.
@@ -936,6 +984,21 @@ def focus_highlight_animate_get():
936def focus_highlight_animate_set(animate): 984def focus_highlight_animate_set(animate):
937 elm_config_focus_highlight_animate_set(animate) 985 elm_config_focus_highlight_animate_set(animate)
938 986
987def focus_highlight_clip_disabled_get():
988 return elm_config_focus_highlight_clip_disabled_get()
989def focus_highlight_clip_disabled_set(disabled):
990 elm_config_focus_highlight_clip_disabled_set(disabled)
991
992def focus_move_policy_get():
993 return elm_config_focus_move_policy_get()
994def focus_move_policy_set(policy):
995 elm_config_focus_move_policy_set(policy)
996
997def item_focus_on_selection_get():
998 return elm_config_item_focus_on_selection_get()
999def item_focus_on_selection_set(enabled):
1000 elm_config_item_focus_on_selection_set(enabled)
1001
939def preferred_engine_get(): 1002def preferred_engine_get():
940 return _ctouni(elm_config_preferred_engine_get()) 1003 return _ctouni(elm_config_preferred_engine_get())
941def preferred_engine_set(engine): 1004def preferred_engine_set(engine):
diff --git a/efl/elementary/enums.pxd b/efl/elementary/enums.pxd
index 1983a05..de15cd7 100644
--- a/efl/elementary/enums.pxd
+++ b/efl/elementary/enums.pxd
@@ -161,6 +161,10 @@ cdef extern from "Elementary.h":
161 ELM_FOCUS_RIGHT 161 ELM_FOCUS_RIGHT
162 ELM_FOCUS_LEFT 162 ELM_FOCUS_LEFT
163 163
164 ctypedef enum Elm_Focus_Move_Policy:
165 ELM_FOCUS_MOVE_POLICY_CLICK
166 ELM_FOCUS_MOVE_POLICY_IN
167
164 ctypedef enum Elm_Genlist_Item_Type: 168 ctypedef enum Elm_Genlist_Item_Type:
165 ELM_GENLIST_ITEM_NONE 169 ELM_GENLIST_ITEM_NONE
166 ELM_GENLIST_ITEM_TREE 170 ELM_GENLIST_ITEM_TREE
diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx
index 8ceca49..6604b09 100644
--- a/efl/elementary/object.pyx
+++ b/efl/elementary/object.pyx
@@ -102,6 +102,23 @@ Focus direction
102 102
103 .. versionadded:: 1.8.1 103 .. versionadded:: 1.8.1
104 104
105.. _Elm_Focus_Move_Policy
106
107Focus move policy
108=================
109
110.. data:: ELM_FOCUS_MOVE_POLICY_CLICK
111
112 Give focus to object when they are clicked
113
114 .. versionadded:: 1.10
115
116.. data:: ELM_FOCUS_MOVE_POLICY_IN
117
118 Give focus to object on mouse-in
119
120 .. versionadded:: 1.10
121
105.. _Elm_Input_Event_Type: 122.. _Elm_Input_Event_Type:
106 123
107Input event types 124Input event types
@@ -249,6 +266,9 @@ ELM_FOCUS_DOWN = enums.ELM_FOCUS_DOWN
249ELM_FOCUS_RIGHT = enums.ELM_FOCUS_RIGHT 266ELM_FOCUS_RIGHT = enums.ELM_FOCUS_RIGHT
250ELM_FOCUS_LEFT = enums.ELM_FOCUS_LEFT 267ELM_FOCUS_LEFT = enums.ELM_FOCUS_LEFT
251 268
269ELM_FOCUS_MOVE_POLICY_CLICK = enums.ELM_FOCUS_MOVE_POLICY_CLICK
270ELM_FOCUS_MOVE_POLICY_IN = enums.ELM_FOCUS_MOVE_POLICY_IN
271
252EVAS_CALLBACK_KEY_DOWN = evasenums.EVAS_CALLBACK_KEY_DOWN 272EVAS_CALLBACK_KEY_DOWN = evasenums.EVAS_CALLBACK_KEY_DOWN
253EVAS_CALLBACK_KEY_UP = evasenums.EVAS_CALLBACK_KEY_UP 273EVAS_CALLBACK_KEY_UP = evasenums.EVAS_CALLBACK_KEY_UP
254EVAS_CALLBACK_MOUSE_WHEEL = evasenums.EVAS_CALLBACK_MOUSE_WHEEL 274EVAS_CALLBACK_MOUSE_WHEEL = evasenums.EVAS_CALLBACK_MOUSE_WHEEL