New 1.17 API: edje.Edje.text_class_del()

This commit is contained in:
Davide Andreoli 2016-01-21 22:51:20 +01:00
parent 920a8891e6
commit e087d0d918
2 changed files with 20 additions and 0 deletions

View File

@ -371,6 +371,25 @@ cdef class Edje(Object):
&font, &size)
return (_ctouni(font), size)
def text_class_del(self, text_class):
"""Delete the object text class.
This function deletes any values at the object level for the specified
text class.
Note: deleting the text class will revert it to the values defined by
edje_text_class_set() or the text class defined in the theme file.
:param string text_class: The text class name to be deleted
.. versionadded:: 1.17
"""
if isinstance(text_class, unicode):
text_class = PyUnicode_AsUTF8String(text_class)
edje_object_text_class_del(self.obj,
<const char *>text_class if text_class is not None else NULL)
def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh):
"""Sets the object size class.

View File

@ -377,6 +377,7 @@ cdef extern from "Edje.h":
void edje_object_text_class_set(Evas_Object *obj, char *text_class, char *font, Evas_Font_Size size)
Eina_Bool edje_object_text_class_get(Evas_Object *obj, const char *text_class, const char **font, Evas_Font_Size *size)
void edje_object_text_class_del(Evas_Object *obj, const char *text_class)
Eina_Bool edje_object_size_class_set(Evas_Object *obj, const char *size_class, int minw, int minh, int maxw, int maxh)
Eina_Bool edje_object_size_class_get(Evas_Object *obj, const char *size_class, int *minw, int *minh, int *maxw, int *maxh)