Selection handling functions. More...
Functions | |
void | elm_code_widget_selection_start (Evas_Object *widget, unsigned int line, unsigned int col) |
Start the selection of widget contents. More... | |
void | elm_code_widget_selection_end (Evas_Object *widget, unsigned int line, unsigned int col) |
End the selection of widget contents. More... | |
void | elm_code_widget_selection_clear (Evas_Object *widget) |
Clear selection of widget contents. More... | |
void | elm_code_widget_selection_delete (Evas_Object *widget) |
Delete the selected contents of widget contents. More... | |
void | elm_code_widget_selection_select_line (Evas_Object *widget, unsigned int line) |
Select the entire line from the widget. More... | |
void | elm_code_widget_selection_select_word (Evas_Object *widget, unsigned int line, unsigned int col) |
Select a word from the widget. More... | |
char * | elm_code_widget_selection_text_get (Evas_Object *widget) |
Get the selected widget content. More... | |
void | elm_code_widget_selection_cut (Evas_Object *widget) |
Cut the selected widget content. More... | |
void | elm_code_widget_selection_copy (Evas_Object *widget) |
Copy the selected widget content to clipboard. More... | |
void | elm_code_widget_selection_paste (Evas_Object *widget) |
Paste the copied widget content from clipboard. More... | |
Eina_Bool | elm_code_widget_selection_is_empty (Evas_Object *widget) |
check if the widget selection is empty. More... | |
void | elm_code_widget_selection_select_all (Evas_Object *widget) |
Select the entire widget contents. More... | |
Selection handling functions.
Functions for selection handling
void elm_code_widget_selection_start | ( | Evas_Object * | widget, |
unsigned int | line, | ||
unsigned int | col | ||
) |
Start the selection of widget contents.
[in] | widget | The elm_widget object. |
[in] | line | The line index of the widget. |
[in] | widget | The column index of the widget. |
References EINA_TRUE.
Referenced by elm_code_widget_selection_select_all().
void elm_code_widget_selection_end | ( | Evas_Object * | widget, |
unsigned int | line, | ||
unsigned int | col | ||
) |
End the selection of widget contents.
[in] | widget | The elm_widget object. |
[in] | line | The line index of the widget. |
[in] | widget | The column index of the widget. |
void elm_code_widget_selection_clear | ( | Evas_Object * | widget | ) |
Clear selection of widget contents.
[in] | widget | The elm_widget object. |
void elm_code_widget_selection_delete | ( | Evas_Object * | widget | ) |
Delete the selected contents of widget contents.
[in] | widget | The elm_widget object. |
References EINA_TRUE.
Referenced by elm_code_widget_selection_cut(), and elm_code_widget_selection_paste().
void elm_code_widget_selection_select_line | ( | Evas_Object * | widget, |
unsigned int | line | ||
) |
Select the entire line from the widget.
[in] | widget | The elm_widget object. |
[in] | line | The line index of the widget. |
void elm_code_widget_selection_select_word | ( | Evas_Object * | widget, |
unsigned int | line, | ||
unsigned int | col | ||
) |
Select a word from the widget.
[in] | widget | The elm_widget object. |
[in] | line | The line index of the widget. |
[in] | col | The column index of the widget. |
char * elm_code_widget_selection_text_get | ( | Evas_Object * | widget | ) |
Get the selected widget content.
[in] | widget | The elm_widget object. |
Referenced by elm_code_widget_selection_copy(), and elm_code_widget_selection_cut().
void elm_code_widget_selection_cut | ( | Evas_Object * | widget | ) |
Cut the selected widget content.
[in] | widget | The elm_widget object. |
References elm_cnp_selection_loss_callback_set(), elm_cnp_selection_set(), elm_code_widget_selection_delete(), elm_code_widget_selection_is_empty(), elm_code_widget_selection_text_get(), ELM_SEL_FORMAT_TEXT, and ELM_SEL_TYPE_CLIPBOARD.
void elm_code_widget_selection_copy | ( | Evas_Object * | widget | ) |
Copy the selected widget content to clipboard.
[in] | widget | The elm_widget object. |
References elm_cnp_selection_loss_callback_set(), elm_cnp_selection_set(), elm_code_widget_selection_is_empty(), elm_code_widget_selection_text_get(), ELM_SEL_FORMAT_TEXT, and ELM_SEL_TYPE_CLIPBOARD.
void elm_code_widget_selection_paste | ( | Evas_Object * | widget | ) |
Paste the copied widget content from clipboard.
[in] | widget | The elm_widget object. |
References elm_cnp_selection_get(), elm_code_widget_selection_delete(), ELM_SEL_FORMAT_TEXT, and ELM_SEL_TYPE_CLIPBOARD.
Eina_Bool elm_code_widget_selection_is_empty | ( | Evas_Object * | widget | ) |
check if the widget selection is empty.
[in] | widget | The elm_widget object. |
References EINA_FALSE, and EINA_TRUE.
Referenced by elm_code_widget_selection_copy(), and elm_code_widget_selection_cut().
void elm_code_widget_selection_select_all | ( | Evas_Object * | widget | ) |
Select the entire widget contents.
[in] | widget | The elm_widget object. |
References elm_code_widget_selection_start().