Class Index | Cross Index | Namespace Index |
Base class for text-editing widgets.
Contained in: Gtk
Derived from:
Widget
Derived by:
Gtk::Entry
Gtk::Text
#include <gtk--/editable.h>
public function member index: |
||
Editable | (); | |
signal void | activate | (); |
emitable signal void | changed | (); |
void | claim_selection | (gboolean claim, guint32 time); |
emitable signal void | copy_clipboard | (); |
emitable signal void | cut_clipboard | (); |
void | delete_selection | (); |
emitable signal void | delete_text | (gint, gint); |
string | get_chars | (int start_pos = 0, int end_pos = - 1) const; |
gint | get_position | () const; |
guint | get_selection_end_pos | () const; |
guint | get_selection_start_pos | () const; |
GtkEditable* | gtkobj | (); |
const GtkEditable* | gtkobj | () const; |
bool | has_selection | () const; |
emitable signal void | insert_text | (const gchar*, gint, gint*); |
static bool | isA | (Object* object); |
signal void | kill_char | (gint); |
signal void | kill_line | (gint); |
signal void | kill_word | (gint); |
signal void | move_cursor | (gint, gint); |
signal void | move_page | (gint, gint); |
signal void | move_to_column | (gint); |
signal void | move_to_row | (gint); |
signal void | move_word | (gint); |
emitable signal void | paste_clipboard | (); |
void | select_region | (gint start, gint end); |
emitable signal void | set_editable | (gboolean); |
virtual | ~Editable | (); |
protected function member index: |
||
virtual void | activate_impl | (); |
virtual void | changed_impl | (); |
virtual void | copy_clipboard_impl | (); |
virtual void | cut_clipboard_impl | (); |
virtual void | delete_text_impl | (gint p0, gint p1); |
virtual void | insert_text_impl | (const gchar* p0, gint p1, gint* p2); |
virtual void | kill_char_impl | (gint p0); |
virtual void | kill_line_impl | (gint p0); |
virtual void | kill_word_impl | (gint p0); |
virtual void | move_cursor_impl | (gint p0, gint p1); |
virtual void | move_page_impl | (gint p0, gint p1); |
virtual void | move_to_column_impl | (gint p0); |
virtual void | move_to_row_impl | (gint p0); |
virtual void | move_word_impl | (gint p0); |
virtual void | paste_clipboard_impl | (); |
virtual void | set_editable_impl | (gboolean p0); |
Generally, this will be done with a keystroke. (The default binding for this action is Return for Gtk::Entry and Control-Return for Gtk::Text.)
claim: If TRUE, claim the selection, otherwise, disclaim it.time: The timestamp for claiming the selection.
The default handler for this signal will normally be responsible for deleting the text, so by connecting to this signal and then stopping the signal, it is possible to modify the deleted text, or prevent it from being deleted entirely. The start_pos and end_pos parameters are interpreted as for delete_text.
The characters that are retrieved are those characters at positions from start_pos up to, but not including end_pos. If end_pos is negative, then the the characters retrieved will be those characters from start_pos to the end of the text.start_pos: The starting position.
end_pos: The end position.
Returns: The characters in the indicated region.
Returns : the position of the cursor. The cursor is displayed before the character with the given (base 0) index in the widget. The value will be less than or equal to the number of characters in the widget. Note that this position is in characters, not in bytes.
The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal, it is possible to modify the inserted text, or prevent it from being inserted entirely.
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 the characters selected will be those characters from start_pos to the end of the text.start: The starting position.
end: The end position.
This is meant to be overriden by child classes and should not generally useful to applications.