Functions that deal with dragable parts. More...
Macros | |
#define | EDJE_DRAG_DIR_NONE EFL_UI_DRAG_DIR_NONE |
Not dragable. | |
#define | EDJE_DRAG_DIR_X EFL_UI_DRAG_DIR_X |
Dragable horizontally. | |
#define | EDJE_DRAG_DIR_Y EFL_UI_DRAG_DIR_Y |
Dragable verically. | |
#define | EDJE_DRAG_DIR_XY EFL_UI_DRAG_DIR_XY |
Dragable in both directions. | |
Typedefs | |
typedef Efl_Ui_Drag_Dir | Edje_Drag_Dir |
Dragable properties values. | |
Functions | |
Eina_Bool | edje_object_part_drag_value_set (Edje_Object *obj, const char *part, double dx, double dy) |
Sets the dragable object location. More... | |
Eina_Bool | edje_object_part_drag_value_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Gets the dragable object location. More... | |
Eina_Bool | edje_object_part_drag_size_set (Edje_Object *obj, const char *part, double dw, double dh) |
Sets the dragable object size. More... | |
Eina_Bool | edje_object_part_drag_size_get (const Edje_Object *obj, const char *part, double *dw, double *dh) |
Gets the dragable object size. More... | |
Edje_Drag_Dir | edje_object_part_drag_dir_get (const Edje_Object *obj, const char *part) |
Determines dragable directions. More... | |
Eina_Bool | edje_object_part_drag_step_set (Edje_Object *obj, const char *part, double dx, double dy) |
Sets the drag step increment. More... | |
Eina_Bool | edje_object_part_drag_step_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Gets the drag step increment values. More... | |
Eina_Bool | edje_object_part_drag_step (Edje_Object *obj, const char *part, double dx, double dy) |
Steps the dragable x,y steps. More... | |
Eina_Bool | edje_object_part_drag_page_set (Edje_Object *obj, const char *part, double dx, double dy) |
Sets the page step increments. More... | |
Eina_Bool | edje_object_part_drag_page_get (const Edje_Object *obj, const char *part, double *dx, double *dy) |
Gets the page step increments. More... | |
Eina_Bool | edje_object_part_drag_page (Edje_Object *obj, const char *part, double dx, double dy) |
Pages x,y steps. More... | |
Eina_Bool | edje_object_part_text_set (const Edje_Object *obj, const char *part, const char *text) |
Sets a given text to an Edje object TEXT or TEXTBLOCK parts. More... | |
const char * | edje_object_part_text_get (const Edje_Object *obj, const char *part) |
Gets the text currntly set to the given part. More... | |
void | edje_object_part_text_cursor_begin_set (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the beginning of the text part evas_textblock_cursor_paragraph_first. More... | |
void | edje_object_part_text_cursor_end_set (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the end of the text part. More... | |
void | edje_object_part_text_cursor_pos_set (Edje_Object *obj, const char *part, Edje_Cursor cur, int pos) |
Sets the cursor position to the given value. More... | |
int | edje_object_part_text_cursor_pos_get (const Edje_Object *obj, const char *part, Edje_Cursor cur) |
Retrieves the current position of the cursor. More... | |
Eina_Bool | edje_object_part_text_cursor_coord_set (Edje_Object *obj, const char *part, Edje_Cursor cur, int x, int y) |
Position the given cursor to a X,Y position. More... | |
void | edje_object_part_text_cursor_line_begin_set (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the beginning of the line. More... | |
void | edje_object_part_text_cursor_line_end_set (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the end of the line. More... | |
Eina_Bool | edje_object_part_text_cursor_prev (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the previous char evas_textblock_cursor_char_prev. More... | |
Eina_Bool | edje_object_part_text_cursor_next (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Advances the cursor to the next cursor position. More... | |
Eina_Bool | edje_object_part_text_cursor_up (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the char above the current cursor position. More... | |
Eina_Bool | edje_object_part_text_cursor_down (Edje_Object *obj, const char *part, Edje_Cursor cur) |
Moves the cursor to the char below the current cursor position. More... | |
void | edje_object_part_text_cursor_copy (Edje_Object *obj, const char *part, Edje_Cursor src, Edje_Cursor dst) |
Copies the cursor to another cursor. More... | |
char * | edje_object_part_text_cursor_content_get (const Edje_Object *obj, const char *part, Edje_Cursor cur) |
Returns the content (char) at the cursor position. More... | |
void | edje_object_part_text_cursor_geometry_get (const Edje_Object *obj, const char *part, int *x, int *y, int *w, int *h) |
Returns the cursor geometry of the part relative to the edje object. More... | |
Eina_Bool | edje_object_part_text_hide_visible_password (Edje_Object *obj, const char *part) |
Hides visible last character for password mode. More... | |
Eina_Bool | edje_object_part_text_cursor_is_format_get (const Edje_Object *obj, const char *part, Edje_Cursor cur) |
Returns whether the cursor points to a format. More... | |
Eina_Bool | edje_object_part_text_cursor_is_visible_format_get (const Edje_Object *obj, const char *part, Edje_Cursor cur) |
Returns true if the cursor points to a visible format For example \t, \n, item and etc. More... | |
const Eina_List * | edje_object_part_text_anchor_geometry_get (const Edje_Object *obj, const char *part, const char *anchor) |
Returns a list of Evas_Textblock_Rectangle anchor rectangles. More... | |
const Eina_List * | edje_object_part_text_anchor_list_get (const Edje_Object *obj, const char *part) |
Returns a list of char anchor names. More... | |
const char * | edje_object_part_text_style_user_peek (const Edje_Object *obj, const char *part) |
Returns the text of the object part. More... | |
void | edje_object_part_text_style_user_push (Edje_Object *obj, const char *part, const char *style) |
Sets the style of the. More... | |
void | edje_object_part_text_style_user_pop (Edje_Object *obj, const char *part) |
Deletes the top style form the user style stack. More... | |
Eina_Bool | edje_object_part_text_item_geometry_get (const Edje_Object *obj, const char *part, const char *item, int *cx, int *cy, int *cw, int *ch) |
Returns item geometry. More... | |
const Eina_List * | edje_object_part_text_item_list_get (const Edje_Object *obj, const char *part) |
Returns a list of char item names. More... | |
void | edje_object_text_insert_filter_callback_add (Edje_Object *obj, const char *part, Edje_Text_Filter_Cb func, void *data) |
Adds a filter function for newly inserted text. More... | |
void * | edje_object_text_insert_filter_callback_del (Edje_Object *obj, const char *part, Edje_Text_Filter_Cb func) |
Deletes a function from the filter list. More... | |
void * | edje_object_text_insert_filter_callback_del_full (Edje_Object *obj, const char *part, Edje_Text_Filter_Cb func, void *data) |
Deletes a function and matching user data from the filter list. More... | |
void | edje_object_text_markup_filter_callback_add (Edje_Object *obj, const char *part, Edje_Markup_Filter_Cb func, void *data) |
Adds a markup filter function for newly inserted text. More... | |
void * | edje_object_text_markup_filter_callback_del (Edje_Object *obj, const char *part, Edje_Markup_Filter_Cb func) |
Deletes a function from the markup filter list. More... | |
void * | edje_object_text_markup_filter_callback_del_full (Edje_Object *obj, const char *part, Edje_Markup_Filter_Cb func, void *data) |
Deletes a function and matching user data from the markup filter list. More... | |
void | edje_object_part_text_user_insert (const Edje_Object *obj, const char *part, const char *text) |
This function inserts text as if the user has inserted it. More... | |
void | edje_object_part_text_append (Edje_Object *obj, const char *part, const char *text) |
Inserts text for an object part. More... | |
Eina_Bool | edje_object_part_text_escaped_set (Edje_Object *obj, const char *part, const char *text) |
Sets the text for an object part, but converts HTML escapes to UTF8. More... | |
Eina_Bool | edje_object_part_text_unescaped_set (Edje_Object *obj, const char *part, const char *text_to_escape) |
Sets the raw (non escaped) text for an object part. More... | |
char * | edje_object_part_text_unescaped_get (const Edje_Object *obj, const char *part) |
Returns the text of the object part, without escaping. More... | |
void | edje_object_part_text_insert (Edje_Object *obj, const char *part, const char *text) |
Inserts text for an object part. More... | |
Functions that deal with dragable parts.
To create a movable part it must be declared as dragable in EDC file. To do so, one must define a "dragable" block inside the "part" block.
These functions are used to set dragging properties to a part or get dragging information about it.
Eina_Bool edje_object_part_drag_value_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Sets the dragable object location.
Places the dragable object at the given location.
Values for dx and dy are real numbers that range from 0 to 1, representing the relative position to the dragable area on that axis.
This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y
in the dragable part theme is 1, and at bottom if it is -1.
For the horizontal axis, 0.0 means left if the first parameter of x
in the dragable part theme is 1, and right if it is -1.
See also edje_object_part_drag_value_get()
[in] | part | The part name |
[in] | dx | The x value |
[in] | dy | The y value |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_value_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Gets the dragable object location.
Values for dx and dy are real numbers that range from 0 to 1, representing the relative position to the dragable area on that axis.
See also edje_object_part_drag_value_set()
Gets the drag location values.
[in] | part | The part name |
[out] | dx | The x value |
[out] | dy | The y value |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_size_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dw, | ||
double | dh | ||
) |
Sets the dragable object size.
Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis.
Sets the size of the dragable object.
See also edje_object_part_drag_size_get()
[in] | part | The part name |
[in] | dw | The drag width |
[in] | dh | The drag height |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_size_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dw, | ||
double * | dh | ||
) |
Gets the dragable object size.
Gets the dragable object size.
See also edje_object_part_drag_size_set()
[in] | part | The part name |
[out] | dw | The drag width |
[out] | dh | The drag height |
true
on success, false
otherwise Edje_Drag_Dir edje_object_part_drag_dir_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Determines dragable directions.
The dragable directions are defined in the EDC file, inside the dragable section, by the attributes x
and y
. See the Edje Data Collection reference for more information.
[in] | part | The part name |
Eina_Bool edje_object_part_drag_step_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Sets the drag step increment.
Sets the x,y step increments for a dragable object.
Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis by which the part will be moved.
See also edje_object_part_drag_step_get()
[in] | part | The part name |
[in] | dx | The x step amount |
[in] | dy | The y step amount |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_step_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Gets the drag step increment values.
Gets the x and y step increments for the dragable object.
See also edje_object_part_drag_step_set()
[in] | part | The part name |
[out] | dx | The x step amount |
[out] | dy | The y step amount |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_step | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Steps the dragable x,y steps.
Steps x,y where the step increment is the amount set by edje_object_part_drag_step_set().
Values for dx and dy are real numbers that range from 0 to 1.
See also edje_object_part_drag_page()
[in] | part | The part name |
[in] | dx | The x step |
[in] | dy | The y step |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_page_set | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Sets the page step increments.
Sets the x,y page step increment values.
Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the dragable area on that axis by which the part will be moved.
See also edje_object_part_drag_page_get()
[in] | part | The part name |
[in] | dx | The x page step increment |
[in] | dy | The y page step increment |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_page_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
double * | dx, | ||
double * | dy | ||
) |
Gets the page step increments.
Gets the x,y page step increments for the dragable object.
See also edje_object_part_drag_page_set()
[in] | part | The part name |
[out] | dx | The x page step increment |
[out] | dy | The y page step increment |
true
on success, false
otherwise Eina_Bool edje_object_part_drag_page | ( | Edje_Object * | obj, |
const char * | part, | ||
double | dx, | ||
double | dy | ||
) |
Pages x,y steps.
Pages x,y where the increment is defined by edje_object_part_drag_page_set().
Values for dx and dy are real numbers that range from 0 to 1.
See also edje_object_part_drag_step()
[in] | part | The part name |
[in] | dx | The x step |
[in] | dy | The y step |
true
on success, false
otherwise Eina_Bool edje_object_part_text_set | ( | const Edje_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Sets a given text to an Edje object TEXT
or TEXTBLOCK parts.
[in] | part | The part name |
[in] | text | The text to set on that part |
References EINA_TRUE.
Referenced by edje_external_type_get().
const char* edje_object_part_text_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Gets the text currntly set to the given part.
[in] | part | The part name |
null
otherwise. Referenced by edje_external_type_get(), and elm_layout_content_swallow_list_get().
void edje_object_part_text_cursor_begin_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the beginning of the text part evas_textblock_cursor_paragraph_first.
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
Referenced by elm_entry_entry_get().
void edje_object_part_text_cursor_end_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the end of the text part.
evas_textblock_cursor_paragraph_last
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
Referenced by elm_entry_entry_get().
void edje_object_part_text_cursor_pos_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur, | ||
int | pos | ||
) |
Sets the cursor position to the given value.
[in] | part | The part name |
[in] | cur | The cursor to move |
[in] | pos | The position of the cursor |
Referenced by elm_entry_entry_get().
int edje_object_part_text_cursor_pos_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Retrieves the current position of the cursor.
[in] | part | The part name |
[in] | cur | The cursor to move |
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_coord_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur, | ||
int | x, | ||
int | y | ||
) |
Position the given cursor to a X,Y position.
This is frequently used with the user cursor.
[in] | part | The part containing the object. |
[in] | cur | The cursor to adjust. |
[in] | x | X Coordinate. |
[in] | y | Y Coordinate. |
true
on success, false
otherwise References EINA_TRUE.
void edje_object_part_text_cursor_line_begin_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the beginning of the line.
evas_textblock_cursor_line_char_first
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
Referenced by elm_entry_entry_get().
void edje_object_part_text_cursor_line_end_set | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the end of the line.
evas_textblock_cursor_line_char_last
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_prev | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the previous char evas_textblock_cursor_char_prev.
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
true
on success, false
otherwise References EINA_TRUE.
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_next | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Advances the cursor to the next cursor position.
evas_textblock_cursor_char_next
[in] | part | The part name |
[in] | cur | The edje cursor to advance |
true
on success, false
otherwise References EINA_TRUE.
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_up | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the char above the current cursor position.
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
true
on success, false
otherwise References EINA_TRUE.
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_down | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Moves the cursor to the char below the current cursor position.
[in] | part | The part name |
[in] | cur | The edje cursor to work on |
true
on success, false
otherwise References EINA_TRUE.
Referenced by elm_entry_entry_get().
void edje_object_part_text_cursor_copy | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | src, | ||
Edje_Cursor | dst | ||
) |
Copies the cursor to another cursor.
[in] | part | The part name |
[in] | src | The cursor to copy from |
[in] | dst | The cursor to copy to |
Referenced by elm_entry_entry_get().
char* edje_object_part_text_cursor_content_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Returns the content (char) at the cursor position.
evas_textblock_cursor_content_get
You must free the return (if not null
) after you are done with it.
[in] | part | The part name |
[in] | cur | The cursor to use |
References efl_data_scope_get().
Referenced by elm_entry_entry_get().
void edje_object_part_text_cursor_geometry_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
int * | x, | ||
int * | y, | ||
int * | w, | ||
int * | h | ||
) |
Returns the cursor geometry of the part relative to the edje object.
[in] | part | The part name |
[out] | x | Cursor X position |
[out] | y | Cursor Y position |
[out] | w | Cursor width |
[out] | h | Cursor height |
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_hide_visible_password | ( | Edje_Object * | obj, |
const char * | part | ||
) |
Hides visible last character for password mode.
[in] | part | The part name |
true
if the visible character is hidden. false
if there is no visible character or the object is not set for password mode.References EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), and EINA_FALSE.
Eina_Bool edje_object_part_text_cursor_is_format_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Returns whether the cursor points to a format.
evas_textblock_cursor_is_format
[in] | part | The part name |
[in] | cur | The cursor to adjust. |
true
if the cursor points to a format, false
otherwise. References EINA_FALSE.
Referenced by elm_entry_entry_get().
Eina_Bool edje_object_part_text_cursor_is_visible_format_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
Edje_Cursor | cur | ||
) |
Returns true
if the cursor points to a visible format For example \t, \n, item and etc.
evas_textblock_cursor_format_is_visible_get
[in] | part | The part name |
[in] | cur | The cursor to adjust. |
true
if the cursor points to a visible format, false
otherwise. References EINA_FALSE.
Referenced by elm_entry_entry_get().
const Eina_List* edje_object_part_text_anchor_geometry_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
const char * | anchor | ||
) |
Returns a list of Evas_Textblock_Rectangle anchor rectangles.
This function return a list of Evas_Textblock_Rectangle anchor rectangles.
[in] | part | The part name |
[in] | anchor | The anchor name |
const Eina_List* edje_object_part_text_anchor_list_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Returns a list of char anchor names.
This function returns a list of char anchor names.
[in] | part | The part name |
const char* edje_object_part_text_style_user_peek | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Returns the text of the object part.
This function returns the style associated with the textblock part.
[in] | part | The part name |
References EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), evas_object_textblock_style_user_peek(), and evas_textblock_style_get().
void edje_object_part_text_style_user_push | ( | Edje_Object * | obj, |
const char * | part, | ||
const char * | style | ||
) |
Sets the style of the.
This function sets the style associated with the textblock part.
[in] | part | The part name |
[in] | style | The style to set (textblock conventions). |
References EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), EINA_TRUE, evas_object_textblock_style_user_push(), evas_textblock_style_free(), evas_textblock_style_new(), and evas_textblock_style_set().
void edje_object_part_text_style_user_pop | ( | Edje_Object * | obj, |
const char * | part | ||
) |
Deletes the top style form the user style stack.
[in] | part | The part name |
References EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), EINA_TRUE, and evas_object_textblock_style_user_pop().
Eina_Bool edje_object_part_text_item_geometry_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
const char * | item, | ||
int * | cx, | ||
int * | cy, | ||
int * | cw, | ||
int * | ch | ||
) |
Returns item geometry.
This function return a list of Evas_Textblock_Rectangle item rectangles.
[in] | part | The part name |
[in] | item | The item name |
[out] | cx | Item x return (relative to entry part) |
[out] | cy | Item y return (relative to entry part) |
[out] | cw | Item width return |
[out] | ch | Item height return |
References efl_data_scope_get(), and EINA_FALSE.
const Eina_List* edje_object_part_text_item_list_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Returns a list of char item names.
This function returns a list of char item names.
[in] | part | The part name |
References efl_data_scope_get().
void edje_object_text_insert_filter_callback_add | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Text_Filter_Cb | func, | ||
void * | data | ||
) |
Adds a filter function for newly inserted text.
Whenever text is inserted (not the same as set) into the given part, the list of filter functions will be called to decide if and how the new text will be accepted. There are three types of filters, EDJE_TEXT_FILTER_TEXT, EDJE_TEXT_FILTER_FORMAT and EDJE_TEXT_FILTER_MARKUP. The text parameter in the func filter can be modified by the user and it's up to him to free the one passed if he's to change the pointer. If doing so, the newly set text should be malloc'ed, as once all the filters are called Edje will free it. If the text is to be rejected, freeing it and setting the pointer to null
will make Edje break out of the filter cycle and reject the inserted text.
See also edje_object_text_insert_filter_callback_del, edje_object_text_insert_filter_callback_del_full and edje_object_text_markup_filter_callback_add
[in] | part | The part name |
[in] | func | The callback function that will act as filter |
[in] | data | User provided data to pass to the filter function |
References efl_data_scope_get(), eina_list_append(), and eina_stringshare_add().
void* edje_object_text_insert_filter_callback_del | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Text_Filter_Cb | func | ||
) |
Deletes a function from the filter list.
Delete the given func filter from the list in part. Returns the user data pointer given when added.
See also edje_object_text_insert_filter_callback_add and edje_object_text_insert_filter_callback_del_full
[in] | part | The part name |
[in] | func | The function callback to remove |
null
otherwise References efl_data_scope_get(), EINA_LIST_FOREACH, eina_list_remove_list(), and eina_stringshare_del().
void* edje_object_text_insert_filter_callback_del_full | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Text_Filter_Cb | func, | ||
void * | data | ||
) |
Deletes a function and matching user data from the filter list.
Delete the given func filter and data user data from the list in part. Returns the user data pointer given when added.
See also edje_object_text_insert_filter_callback_add and edje_object_text_insert_filter_callback_del
[in] | part | The part name |
[in] | func | The function callback to remove |
[in] | data | The data passed to the callback function |
null
otherwise References efl_data_scope_get(), EINA_LIST_FOREACH, eina_list_remove_list(), and eina_stringshare_del().
void edje_object_text_markup_filter_callback_add | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Markup_Filter_Cb | func, | ||
void * | data | ||
) |
Adds a markup filter function for newly inserted text.
Whenever text is inserted (not the same as set) into the given part, the list of markup filter functions will be called to decide if and how the new text will be accepted. The text parameter in the func filter is always markup. It can be modified by the user and it's up to him to free the one passed if he's to change the pointer. If doing so, the newly set text should be malloc'ed, as once all the filters are called Edje will free it. If the text is to be rejected, freeing it and setting the pointer to null
will make Edje break out of the filter cycle and reject the inserted text. This function is different from edje_object_text_insert_filter_callback_add() in that the text parameter in the fucn filter is always markup.
See also edje_object_text_markup_filter_callback_del, edje_object_text_markup_filter_callback_del_full and edje_object_text_insert_filter_callback_add
[in] | part | The part name |
[in] | func | The callback function that will act as markup filter |
[in] | data | User provided data to pass to the filter function |
References efl_data_scope_get(), eina_list_append(), and eina_stringshare_add().
void* edje_object_text_markup_filter_callback_del | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Markup_Filter_Cb | func | ||
) |
Deletes a function from the markup filter list.
Delete the given func filter from the list in part. Returns the user data pointer given when added.
See also edje_object_text_markup_filter_callback_add and edje_object_text_markup_filter_callback_del_full
[in] | part | The part name |
[in] | func | The function callback to remove |
null
otherwiseReferences efl_data_scope_get(), EINA_LIST_FOREACH, eina_list_remove_list(), and eina_stringshare_del().
void* edje_object_text_markup_filter_callback_del_full | ( | Edje_Object * | obj, |
const char * | part, | ||
Edje_Markup_Filter_Cb | func, | ||
void * | data | ||
) |
Deletes a function and matching user data from the markup filter list.
Delete the given func filter and data user data from the list in part. Returns the user data pointer given when added.
See also edje_object_text_markup_filter_callback_add and edje_object_text_markup_filter_callback_del
[in] | part | The part name |
[in] | func | The function callback to remove |
[in] | data | The data passed to the callback function |
null
otherwiseReferences efl_data_scope_get(), EINA_LIST_FOREACH, eina_list_remove_list(), and eina_stringshare_del().
void edje_object_part_text_user_insert | ( | const Edje_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
This function inserts text as if the user has inserted it.
This means it actually registers as a change and emits signals, triggers callbacks as appropriate.
[in] | part | The part name |
[in] | text | The text string |
References efl_data_scope_get(), and EINA_TRUE.
void edje_object_part_text_append | ( | Edje_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Inserts text for an object part.
This function inserts the text for an object part at the end; It does not move the cursor.
[in] | part | The part name |
[in] | text | The text string |
References EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), and EINA_TRUE.
Eina_Bool edje_object_part_text_escaped_set | ( | Edje_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Sets the text for an object part, but converts HTML escapes to UTF8.
This converts the given string text to UTF8 assuming it contains HTML style escapes like "&" and "©" etc. IF the part is of type TEXT, as opposed to TEXTBLOCK.
[in] | part | The part name |
[in] | text | The text string |
true
on success, false
otherwiseReferences EDJE_PART_TYPE_TEXT, EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), EINA_FALSE, eina_strbuf_append(), eina_strbuf_append_char(), eina_strbuf_append_length(), eina_strbuf_append_n(), eina_strbuf_free(), eina_strbuf_new(), eina_strbuf_string_get(), eina_strbuf_string_steal(), evas_textblock_escape_string_range_get(), and evas_textblock_string_escape_get().
Referenced by elm_layout_content_swallow_list_get().
Eina_Bool edje_object_part_text_unescaped_set | ( | Edje_Object * | obj, |
const char * | part, | ||
const char * | text_to_escape | ||
) |
Sets the raw (non escaped) text for an object part.
This function will not do escape for you if it is a TEXTBLOCK part, that is, if text contain tags, these tags will not be interpreted/parsed by TEXTBLOCK.
See also edje_object_part_text_unescaped_get().
[in] | part | The part name |
[in] | text_to_escape | The text string |
true
on success, false
otherwise References EDJE_PART_TYPE_TEXT, EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), and EINA_FALSE.
char* edje_object_part_text_unescaped_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Returns the text of the object part, without escaping.
This function is the counterpart of edje_object_part_text_unescaped_set(). Please notice that the result is newly allocated memory and should be released with free() when done.
See also edje_object_part_text_unescaped_set().
[in] | part | The part name |
References EDJE_PART_TYPE_TEXT, EDJE_PART_TYPE_TEXTBLOCK, efl_data_scope_get(), EINA_TRUE, and evas_object_textblock_text_markup_get().
void edje_object_part_text_insert | ( | Edje_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Inserts text for an object part.
This function inserts the text for an object part just before the cursor position.
[in] | part | The part name |
[in] | text | The text string |
References efl_data_scope_get().
Referenced by elm_entry_entry_get().