Home |All Classes |Grouped Classes |Index |Search

Class CL_LineEdit

Single line edit component. More...

Derived from:

public CL_GUIComponent

Derived by:

None

Group:

Components (GUI)

#include <ClanLib/gui.h>

Class Members:

Attributes:

Alignment

get_alignment

is_read_only

is_lowercase

is_uppercase

is_password_mode

get_max_length

get_text

get_text_int

Returns the text converted to integer.

get_text_float

Returns the text converted to float.

get_selection

get_selection_start

get_selection_length

get_cursor_pos

get_preferred_size

Returns the preferred size of a render box.

get_text_size

Returns the size (pixels) of the text in the lineedit, or of the string given as parameter.


Construction:

CL_LineEdit


Operations:

select_all

set_alignment

set_read_only

set_lowercase

set_uppercase

set_password_mode

set_numeric_mode

set_max_length

set_text

set_selection

clear_selection

set_cursor_pos

delete_selected_text

resize_to_fit

Resize the components width so that its whole text becomes visible.

set_input_mask

Use mask to restrict accepted input.

set_decimal_character


Events:

func_before_edit_changed

func_after_edit_changed

func_selection_changed

func_focus_gained

func_enter_pressed

func_unhandled_event

Callback invoked when a event not processed by lineedit occurs.