summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-03-01 17:59:03 +0100
committerdavemds <dave@gurumeditation.it>2014-03-01 17:59:03 +0100
commit00118986e64c705ae8a2a05c09f13526678a4f70 (patch)
treefbe0049f45ee37d16015317d5c37470ce12b6f8c /efl
parentde154b7930e8bacee2b9b11d17733b1d504eddd4 (diff)
Python-EFL: New 1.9 API: Object.focus_highlight_style
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/object.pxd2
-rw-r--r--efl/elementary/object.pyx24
2 files changed, 26 insertions, 0 deletions
diff --git a/efl/elementary/object.pxd b/efl/elementary/object.pxd
index 24f0d48..d640624 100644
--- a/efl/elementary/object.pxd
+++ b/efl/elementary/object.pxd
@@ -104,6 +104,8 @@ cdef extern from "Elementary.h":
104 Evas_Object * elm_object_focused_object_get(const_Evas_Object *obj) 104 Evas_Object * elm_object_focused_object_get(const_Evas_Object *obj)
105 void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool focusable) 105 void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool focusable)
106 Eina_Bool elm_object_tree_focus_allow_get(Evas_Object *obj) 106 Eina_Bool elm_object_tree_focus_allow_get(Evas_Object *obj)
107 Eina_Bool elm_object_focus_highlight_style_set(Evas_Object *obj, const_char *style)
108 const_char * elm_object_focus_highlight_style_get(const_Evas_Object *obj)
107 109
108 # Object - Mirroring (elm_mirroring.h) 110 # Object - Mirroring (elm_mirroring.h)
109 Eina_Bool elm_object_mirrored_get(Evas_Object *obj) 111 Eina_Bool elm_object_mirrored_get(Evas_Object *obj)
diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx
index 99e6825..fe96d0b 100644
--- a/efl/elementary/object.pyx
+++ b/efl/elementary/object.pyx
@@ -1150,6 +1150,30 @@ cdef class Object(evasObject):
1150 def focused_object_get(self): 1150 def focused_object_get(self):
1151 return object_from_instance(elm_object_focused_object_get(self.obj)) 1151 return object_from_instance(elm_object_focused_object_get(self.obj))
1152 1152
1153 property focus_highlight_style:
1154 """The focus highlight style name to be used.
1155
1156 :type: string
1157
1158 .. note:: This overrides the style which is set by
1159 :py:func:`Win.focus_highlight_style_set()`.
1160
1161 .. versionadded:: 1.9
1162
1163 """
1164 def __set__(self, style):
1165 if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style)
1166 elm_object_focus_highlight_style_set(self.obj,
1167 <const_char *>style if style is not None else NULL)
1168 def __get__(self):
1169 return elm_object_focus_highlight_style_get(self.obj)
1170
1171 def focus_highlight_style_set(self, style):
1172 if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style)
1173 elm_object_focus_highlight_style_set(self.obj,
1174 <const_char *>style if style is not None else NULL)
1175 def focus_highlight_style_get(self):
1176 return elm_object_focus_highlight_style_get(self.obj)
1153 1177
1154 property tree_focus_allow: 1178 property tree_focus_allow:
1155 """Whether the Elementary object and its children are focusable 1179 """Whether the Elementary object and its children are focusable