New 1.17 API: edje.Edje.color_class_clear()

This commit is contained in:
Davide Andreoli 2016-01-21 23:03:11 +01:00
parent e087d0d918
commit 078d440e05
2 changed files with 12 additions and 0 deletions

View File

@ -331,6 +331,17 @@ cdef class Edje(Object):
edje_object_color_class_del(self.obj,
<const char *>color_class if color_class is not None else NULL)
def color_class_clear(self):
""" Clear all object color classes.
:return: True on success, False otherwise
:rtype: bool
.. versionadded:: 1.17
"""
return bool(edje_object_color_class_clear(self.obj))
def text_class_set(self, text_class, font, int size):
"""Set text class.

View File

@ -374,6 +374,7 @@ cdef extern from "Edje.h":
void edje_object_color_class_set(Evas_Object *obj, char *color_class, int r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, int a3)
void edje_object_color_class_get(Evas_Object *obj, char *color_class, int *r, int *g, int *b, int *a, int *r2, int *g2, int *b2, int *a2, int *r3, int *g3, int *b3, int *a3)
void edje_object_color_class_del(Evas_Object *obj, char *color_class)
Eina_Bool edje_object_color_class_clear(Evas_Object *obj)
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)