Managing(3)

NAME
Managing - the complexities of selecting text across separate lines.

 - Selection handling functions.

SYNOPSIS

  Functions
void elm_code_widget_selection_start (Evas_Object *widget, unsigned int line, unsigned int col)
Start the selection of widget contents.
void elm_code_widget_selection_end (Evas_Object *widget, unsigned int line, unsigned int col)
End the selection of widget contents.
void elm_code_widget_selection_clear (Evas_Object *widget)
Clear selection of widget contents.
void elm_code_widget_selection_delete (Evas_Object *widget)
Delete the selected contents of widget contents.
void elm_code_widget_selection_select_line (Evas_Object *widget, unsigned int line)
Select the entire line from the widget.
void elm_code_widget_selection_select_word (Evas_Object *widget, unsigned int line, unsigned int col)
Select a word from the widget.
char * elm_code_widget_selection_text_get (Evas_Object *widget)
Get the selected widget content.
void elm_code_widget_selection_cut (Evas_Object *widget)
Cut the selected widget content.
void elm_code_widget_selection_copy (Evas_Object *widget)
Copy the selected widget content to clipboard.
void elm_code_widget_selection_paste (Evas_Object *widget)
Paste the copied widget content from clipboard.
Eina_Bool elm_code_widget_selection_is_empty (Evas_Object *widget)
check if the widget selection is empty.
void elm_code_widget_selection_select_all (Evas_Object *widget)
Select the entire widget contents.

Detailed Description

Selection handling functions. Functions for selection handling

Function Documentation

  void elm_code_widget_selection_start (Evas_Object * widget, unsigned int line, unsigned int col)

Start the selection of widget contents.

Parameters
    widget The elm_widget object.
    line The line index of the widget.
    widget The column index of the widget.

Returns
    None

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.

Parameters
    widget The elm_widget object.
    line The line index of the widget.
    widget The column index of the widget.

Returns
    None

  void elm_code_widget_selection_clear (Evas_Object * widget)

Clear selection of widget contents.

Parameters
    widget The elm_widget object.

Returns
    None

  void elm_code_widget_selection_delete (Evas_Object * widget)

Delete the selected contents of widget contents.

Parameters
    widget The elm_widget object.

Returns
    None

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.

Parameters
    widget The elm_widget object.
    line The line index of the widget.

Returns
    None

  void elm_code_widget_selection_select_word (Evas_Object * widget, unsigned int line, unsigned int col)

Select a word from the widget.

Parameters
    widget The elm_widget object.
    line The line index of the widget.
    col The column index of the widget.

Returns
    None

  char* elm_code_widget_selection_text_get (Evas_Object * widget)

Get the selected widget content.

Parameters
    widget The elm_widget object.

Returns
    char pointer to text contents.

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.

Parameters
    widget The elm_widget object.

Returns
    None

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.

Parameters
    widget The elm_widget object.

Returns
    None

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.

Parameters
    widget The elm_widget object.

Returns
    None

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.

Parameters
    widget The elm_widget object.

Returns
    true is empty, false otherwise

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.

Parameters
    widget The elm_widget object.

Returns
    None

References elm_code_widget_selection_start().

Author

Generated automatically by Doxygen for EFL from the source code.