Class Index | Cross Index | Namespace Index |
A single line text entry field.
Contained in: Gtk
Derived from:
Gtk::Editable
Derived by:
Gtk::SpinButton
#include <gtk--/entry.h>
public function member index: |
||
explicit | Entry | (guint max); |
Entry | (); | |
void | append_text | (const string& text); |
string | get_text | () const; |
unsigned int | get_text_length | () const; |
GtkEntry* | gtkobj | (); |
const GtkEntry* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | prepend_text | (const string& text); |
void | select_region | (gint start, gint end); |
void | set_max_length | (guint16 max); |
void | set_position | (gint position); |
void | set_text | (const string& text); |
void | set_visibility | (bool visible); |
virtual | ~Entry | (); |
max: The new maximum length.
text: The text to append.
Returns: The contents of the text widget as a string.
text: The text to prepend.
The characters that are selected are those characters at positions from start_pos up to, but not including end_pos. If end_pos is negative, then the characters selected will be those characters from start_pos to the end of the text.start: The starting position.
end: The end position.
If the current contents are longer than the given length, then they will be truncated to fit.max: The new maximum length.
position: The position of the cursor. The cursor is displayed before the character with the given (base 0) index in the widget. The value must be less than or equal to the number of characters in the widget. A value of -1 indicates that the position should be set after the last character in the entry. Note that this position is in characters, not in bytes.
text: The new text.
When visibility is set to FALSE, characters are displayed as asterisks (*'s), and will also appear that way when the text in the entry widget is copied elsewhere.visible: TRUE if the contents of the entry are displayed as plaintext.