Home | All Classes | Grouped Classes | Index | Search
Inputbox component More...
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
Construction:
InputBox Constructor | |
Attributes:
Returns the inputfield text. | |
Returns the length of the inputfield text. | |
Returns the marked text from the inputfield. | |
Returns true if part of the text has been marked by the user. | |
Returns the position where the selection starts. | |
Returns the length of current selection. | |
Returns the maximum permitted length of the text. | |
Returns true if password mode is enabled, false othewise. | |
Returns whether the inputfield is read-only. | |
Returns the current cursor position. | |
Returns true if the contents has been edited. |
Operations:
Sets the line edit text to text, clears the selection and moves the cursor to the end of the line. | |
Set the maximum length of the text in the editor. | |
If enable is true, display asterisks instead of the characters actually entered. | |
Enables or disables read-only mode. | |
Selects all text, and moves the cursor to the end. | |
Deselects all text (i.e. removes marking) and leaves the cursor at the current position. | |
Sets the marked area at start and be length characters long. | |
Sets the cursor position to pos. | |
Syntactic sugar for set_text(""). | |
Deletes the character to the left of the text cursor and moves the cursor one position to the left. | |
Deletes the character on the right side of the text cursor. | |
Cut the selected text if any. | |
Moves the cursor position. | |
Moves the cursor by word. | |
Moves the text cursor to the left end of the line. | |
Moves the text cursor to the right end of the line. | |
Sets the edited flag to on. |
Signals:
This signal is emitted whenever text is changed in the inputfield. | |
This signal is emitted when enter is pressed in the inputfield. | |
This signal is emitted whenever some character is changed/added/removed, cursor moved etc. | |
This signal is emitted after user enter some character, but before it added, to allow user to accept/decline it. |
Detailed description:
!group=GUI/Controls! !header=gui.h!