diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2016-01-21 22:51:20 +0100 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2016-01-21 22:51:20 +0100 |
commit | e087d0d918a819531338a19da2f72dda811e23af (patch) | |
tree | 22f2dbe548e2126317b38212e3aa33d15d9f86e6 /efl | |
parent | 920a8891e6c05b506a188061c1cfc653290df0b3 (diff) |
New 1.17 API: edje.Edje.text_class_del()
Diffstat (limited to 'efl')
-rw-r--r-- | efl/edje/efl.edje_object.pxi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi index fb9831a..1a01e6b 100644 --- a/efl/edje/efl.edje_object.pxi +++ b/efl/edje/efl.edje_object.pxi | |||
@@ -371,6 +371,25 @@ cdef class Edje(Object): | |||
371 | &font, &size) | 371 | &font, &size) |
372 | return (_ctouni(font), size) | 372 | return (_ctouni(font), size) |
373 | 373 | ||
374 | def text_class_del(self, text_class): | ||
375 | """Delete the object text class. | ||
376 | |||
377 | This function deletes any values at the object level for the specified | ||
378 | text class. | ||
379 | |||
380 | Note: deleting the text class will revert it to the values defined by | ||
381 | edje_text_class_set() or the text class defined in the theme file. | ||
382 | |||
383 | :param string text_class: The text class name to be deleted | ||
384 | |||
385 | .. versionadded:: 1.17 | ||
386 | |||
387 | """ | ||
388 | if isinstance(text_class, unicode): | ||
389 | text_class = PyUnicode_AsUTF8String(text_class) | ||
390 | edje_object_text_class_del(self.obj, | ||
391 | <const char *>text_class if text_class is not None else NULL) | ||
392 | |||
374 | def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh): | 393 | def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh): |
375 | """Sets the object size class. | 394 | """Sets the object size class. |
376 | 395 | ||