digits_filter_data.accepted = "0123456789";
digits_filter_data.rejected = NULL;
- elm_entry_text_filter_append(en, elm_entry_filter_accept_set, &digits_filter_data);
+ elm_entry_markup_filter_append(en, elm_entry_filter_accept_set, &digits_filter_data);
/* No digits entry */
en = elm_entry_add(win);
digits_filter_data2.accepted = NULL;
digits_filter_data2.rejected = "0123456789";
- elm_entry_text_filter_append(en, elm_entry_filter_accept_set, &digits_filter_data2);
+ elm_entry_markup_filter_append(en, elm_entry_filter_accept_set, &digits_filter_data2);
/* Size limited entry */
en = elm_entry_add(win);
limit_filter_data.max_char_count = 20;
limit_filter_data.max_byte_count = 0;
- elm_entry_text_filter_append(en, elm_entry_filter_limit_size, &limit_filter_data);
+ elm_entry_markup_filter_append(en, elm_entry_filter_limit_size, &limit_filter_data);
/* Byte size limited entry */
en = elm_entry_add(win);
limit_filter_data2.max_char_count = 0;
limit_filter_data2.max_byte_count = 30;
- elm_entry_text_filter_append(en, elm_entry_filter_limit_size, &limit_filter_data2);
+ elm_entry_markup_filter_append(en, elm_entry_filter_limit_size, &limit_filter_data2);
/* Single line password entry */
en_p = elm_entry_add(win);
{elm_entry_item_provider_remove(obj, func, data);}
EINA_DEPRECATED EAPI void
elm_scrolled_entry_text_filter_append(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data)
-{elm_entry_text_filter_append(obj, func, data);}
+{elm_entry_markup_filter_append(obj, func, data);}
EINA_DEPRECATED EAPI void
elm_scrolled_entry_text_filter_prepend(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data)
-{elm_entry_text_filter_prepend(obj, func, data);}
+{elm_entry_markup_filter_prepend(obj, func, data);}
EINA_DEPRECATED EAPI void
elm_scrolled_entry_text_filter_remove(Evas_Object *obj, void (*func) (void *data, Evas_Object *entry, char **text), void *data)
-{elm_entry_text_filter_remove(obj, func, data);}
+{elm_entry_markup_filter_remove(obj, func, data);}
EINA_DEPRECATED EAPI void
elm_scrolled_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format)
{elm_entry_file_set(obj, file, format);}
*/
EINA_DEPRECATED EAPI void elm_gengrid_item_del(Elm_Object_Item *it);
+/**
+ * Append a filter function for text inserted in the entry
+ *
+ * Append the given callback to the list. This functions will be called
+ * whenever any text is inserted into the entry, with the text to be inserted
+ * as a parameter. The callback function is free to alter the text in any way
+ * it wants, but it must remember to free the given pointer and update it.
+ * If the new text is to be discarded, the function can free it and set its
+ * text parameter to NULL. This will also prevent any following filters from
+ * being called.
+ *
+ * @param obj The entry object
+ * @param func The function to use as text filter
+ * @param data User data to pass to @p func
+ * @deprecated use elm_entry_markup_filter_append() instead
+ * @ingroup Entry
+ */
+EINA_DEPRECATED EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
+/**
+ * Prepend a filter function for text inserted in the entry
+ *
+ * Prepend the given callback to the list. See elm_entry_text_filter_append()
+ * for more information
+ *
+ * @param obj The entry object
+ * @param func The function to use as text filter
+ * @param data User data to pass to @p func
+ * @deprecated use elm_entry_markup_filter_prepend() instead
+ * @ingroup Entry
+ */
+EINA_DEPRECATED EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
+
+/**
+ * Remove a filter from the list
+ *
+ * Removes the given callback from the filter list. See
+ * elm_entry_text_filter_append() for more information.
+ *
+ * @param obj The entry object
+ * @param func The filter function to remove
+ * @param data The user data passed when adding the function
+ * @deprecated use elm_entry_markup_filter_remove() instead
+ * @ingroup Entry
+ */
+EINA_DEPRECATED EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
* indicated by Elm_Wrap_Type.
*
* Other features include password mode, filtering of inserted text with
- * elm_entry_text_filter_append() and related functions, inline "items" and
+ * elm_entry_markup_filter_append() and related functions, inline "items" and
* formatted markup text.
*
* @section entry-markup Formatted text
* This callback type is used by entry filters to modify text.
* @param data The data specified as the last param when adding the filter
* @param entry The entry object
- * @param text A pointer to the location of the text being filtered. This data can be modified,
+ * @param text A pointer to the location of the text being filtered. The type of text is always markup. This data can be modified,
* but any additional allocations must be managed by the user.
- * @see elm_entry_text_filter_append
- * @see elm_entry_text_filter_prepend
+ * @see elm_entry_markup_filter_append
+ * @see elm_entry_markup_filter_prepend
*/
typedef void (*Elm_Entry_Filter_Cb)(void *data, Evas_Object *entry, char **text);
* @param obj The entry object
* @param entry The text to be displayed
*
- * @see elm_entry_text_filter_append()
+ * @see elm_entry_markup_filter_append()
*/
EAPI void elm_entry_entry_append(Evas_Object *obj, const char *entry);
* @param obj The entry object
* @param entry The text to insert
*
- * @see elm_entry_text_filter_append()
+ * @see elm_entry_markup_filter_append()
*/
EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry);
EAPI void elm_entry_item_provider_remove(Evas_Object *obj, Evas_Object * (*func)(void *data, Evas_Object * entry, const char *item), void *data);
/**
- * Append a filter function for text inserted in the entry
+ * Append a markup filter function for text inserted in the entry
*
* Append the given callback to the list. This functions will be called
* whenever any text is inserted into the entry, with the text to be inserted
- * as a parameter. The callback function is free to alter the text in any way
- * it wants, but it must remember to free the given pointer and update it.
+ * as a parameter. The type of given text is always markup.
+ * The callback function is free to alter the text in any way it wants, but
+ * it must remember to free the given pointer and update it.
* If the new text is to be discarded, the function can free it and set its
* text parameter to NULL. This will also prevent any following filters from
* being called.
* @param func The function to use as text filter
* @param data User data to pass to @p func
*/
-EAPI void elm_entry_text_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
+EAPI void elm_entry_markup_filter_append(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
/**
- * Prepend a filter function for text insdrted in the entry
+ * Prepend a markup filter function for text insdrted in the entry
*
- * Prepend the given callback to the list. See elm_entry_text_filter_append()
+ * Prepend the given callback to the list. See elm_entry_markup_filter_append()
* for more information
*
* @param obj The entry object
* @param func The function to use as text filter
* @param data User data to pass to @p func
*/
-EAPI void elm_entry_text_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
+EAPI void elm_entry_markup_filter_prepend(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
/**
- * Remove a filter from the list
+ * Remove a markup filter from the list
*
* Removes the given callback from the filter list. See
- * elm_entry_text_filter_append() for more information.
+ * elm_entry_markup_filter_append() for more information.
*
* @param obj The entry object
* @param func The filter function to remove
* @param data The user data passed when adding the function
*/
-EAPI void elm_entry_text_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
+EAPI void elm_entry_markup_filter_remove(Evas_Object *obj, Elm_Entry_Filter_Cb func, void *data);
/**
* This converts a markup (HTML-like) string into UTF-8.