EAPI void evas_object_map_enable_set(Evas_Object *obj, Eina_Bool enabled);
#include "canvas/efl_gfx_map.eo.legacy.h"
+
+/**
+ * @brief Apply an evas filter program on this text object.
+ *
+ * Note: the preferred method for filters is to edit EDC styles, rather than
+ * calling this API directly.
+ */
+EAPI void evas_object_text_filter_program_set(Evas_Object *obj, const char *code) EINA_DEPRECATED;
+
+/**
+ * @brief Set a named source object for an evas filter program.
+ *
+ * Note: the preferred method for filters is to edit EDC styles, rather than
+ * calling this API directly.
+ */
+EAPI void evas_object_text_filter_source_set(Evas_Object *obj, const char *name, Evas_Object *source) EINA_DEPRECATED;
Eina_Bool alpha;
if (!pd) return;
- if ((pd->data->code == code) && (!name || (pd->data->name == name))) return;
- if (pd->data->code && code && !strcmp(code, pd->data->code) &&
- pd->data->name && name && !strcmp(name, pd->data->name)) return;
+ if (eina_streq(pd->data->code, code) && eina_streq(pd->data->name, name))
+ return;
evas_object_async_block(obj);
fcow = FCOW_BEGIN(pd);
efl_gfx_filter_program_set(eo_super(obj, MY_CLASS), code, name);
}
+/* deprecated */
EAPI void
-evas_object_text_filter_program_set(Evas_Object *obj, const char *code, const char *name)
+evas_object_text_filter_program_set(Evas_Object *obj, const char *code)
{
- efl_gfx_filter_program_set(obj, code, name);
+ efl_gfx_filter_program_set(obj, code, NULL);
}
+/* deprecated */
EAPI void
evas_object_text_filter_source_set(Evas_Object *obj, const char *name, Evas_Object *source)
{