Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Text_View


Data Structures

struct  Etk_Text_View
 An Etk_Text_View is a widget that allows the user to edit multi-line text. More...

Defines

#define ETK_TEXT_VIEW_TYPE   (etk_text_view_type_get())
 Gets the type of a text view.
#define ETK_TEXT_VIEW(obj)   (ETK_OBJECT_CAST((obj), ETK_TEXT_VIEW_TYPE, Etk_Text_View))
 Casts the object to an Etk_Text_View.
#define ETK_IS_TEXT_VIEW(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_TEXT_VIEW_TYPE))
 Checks if the object is an Etk_Text_View.

Functions

Etk_Widget * etk_text_view_new (void)
 Creates a new text view.
Etk_Textblock * etk_text_view_textblock_get (Etk_Text_View *text_view)
 Gets the textblock of the text view.
Etk_Textblock_Iter * etk_text_view_cursor_get (Etk_Text_View *text_view)
 Gets the cursor's iterator of the text view.
Etk_Textblock_Iter * etk_text_view_selection_bound_get (Etk_Text_View *text_view)
 Gets the selection bound's iterator of the text view.


Define Documentation

#define ETK_TEXT_VIEW_TYPE   (etk_text_view_type_get())

Gets the type of a text view.

Referenced by etk_text_view_new().

#define ETK_TEXT_VIEW ( obj   )     (ETK_OBJECT_CAST((obj), ETK_TEXT_VIEW_TYPE, Etk_Text_View))

Casts the object to an Etk_Text_View.

#define ETK_IS_TEXT_VIEW ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_TEXT_VIEW_TYPE))

Checks if the object is an Etk_Text_View.


Function Documentation

Etk_Widget * etk_text_view_new ( void   ) 

Creates a new text view.

Returns:
Returns the new text view widget

References ETK_TEXT_VIEW_TYPE, and etk_widget_new().

Etk_Textblock * etk_text_view_textblock_get ( Etk_Text_View *  text_view  ) 

Gets the textblock of the text view.

Parameters:
text_view a text view
Returns:
Returns the textblock of the textview

References textblock.

Etk_Textblock_Iter * etk_text_view_cursor_get ( Etk_Text_View *  text_view  ) 

Gets the cursor's iterator of the text view.

Parameters:
text_view a text view
Returns the cursor's iterator of the text view
Warning:
The text view has to be realized, otherwise it returns NULL

References etk_textblock_object_cursor_get(), and textblock_object.

Etk_Textblock_Iter * etk_text_view_selection_bound_get ( Etk_Text_View *  text_view  ) 

Gets the selection bound's iterator of the text view.

Parameters:
text_view a text view
Returns the selection bound's iterator of the text view
Warning:
The text view has to be realized, otherwise it returns NULL

References etk_textblock_object_selection_bound_get(), and textblock_object.