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 efl_data_scope_get(), efl_event_callback_legacy_call(), and 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. |
References efl_data_scope_get(), and efl_event_callback_legacy_call().
| void elm_code_widget_selection_clear | ( | Evas_Object * | widget | ) |
Clear selection of widget contents.
| [in] | widget | The elm_widget object. |
References efl_data_scope_get(), and efl_event_callback_legacy_call().
| 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_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. |
References efl_data_scope_get().
| 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. |
References efl_data_scope_get().
| char* elm_code_widget_selection_text_get | ( | Evas_Object * | widget | ) |
Get the selected widget content.
| [in] | widget | The elm_widget object. |
References efl_data_scope_get().
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_set(), elm_code_widget_selection_is_empty(), and elm_code_widget_selection_text_get().
| 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_set(), elm_code_widget_selection_is_empty(), and elm_code_widget_selection_text_get().
| 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(), and elm_code_widget_selection_delete().
| 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 efl_data_scope_get(), 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 efl_data_scope_get(), and elm_code_widget_selection_start().