![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Inputbox component
Contained in: global
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_InputBox | (CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_InputBox | (const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_InputBox | (const CL_Rect& pos, CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_InputBox | (const CL_Rect& pos, const std::string& text, CL_Component* parent, CL_StyleManager* style = NULL); | |
virtual | ~CL_InputBox | (); |
Attributes: |
||
const std::string& | get_text | () const; |
int | get_length | () const; |
const std::string& | get_marked_text | () const; |
bool | has_marked_text | () const; |
int | get_selection_start | () const; |
int | get_selection_length | () const; |
int | get_max_length | () const; |
bool | in_password_mode | () const; |
bool | is_read_only | () const; |
int | get_cursor_position | () const; |
bool | is_edited | () const; |
Operations: |
||
void | set_text | (const std::string& text); |
void | set_text | (int number); |
void | set_text | (double number); |
void | set_max_length | (int length); |
void | set_password_mode | (bool enable = true); |
void | set_read_only | (bool enable = true); |
void | select_all | (); |
void | deselect | (); |
void | set_selection | (int start, int length); |
void | set_cursor_position | (int pos); |
void | clear | (); |
void | backspace | (); |
void | del | (); |
void | cut | (); |
void | move_cursor | (int delta, bool mark = false); |
void | move_cursor_word | (int delta, bool mark = false); |
void | home | (bool mark = false); |
void | end | (bool mark = false); |
void | set_edited | (bool on = true); |
Signals: |
||
CL_Signal_v1<const std::string& >& | sig_changed | (); |
CL_Signal_v0& | sig_return_pressed | (); |
CL_Signal_v0& | sig_activity | (); |
private function member index: |
||
Implementation: |
||
CL_InputBox | (const CL_InputBox& copy); | |
If mark is true, text will be marked towards the last position
If mark is false, any marked text will be unmarked if the cursor is moved.
If mark is true, text will be marked towards the first position
If mark is false, any marked text will be unmarked if the cursor is moved.
If delta is positive, the cursor is moved forward.
If delta is negative, the cursor is moved backward.
If mark is true, the text is marked.
If delta is positive, the cursor is moved forward.
If delta is negative, the cursor is moved backward.
If mark is true, the text is marked.
const std::string & - Contains the new string.