|
| | Editable (Editable &&src) noexcept |
| |
| Editable & | operator= (Editable &&src) noexcept |
| |
| | ~Editable () noexcept override |
| |
| GtkEditable * | gobj () |
| | Provides access to the underlying C GObject.
|
| |
| const GtkEditable * | gobj () const |
| | Provides access to the underlying C GObject.
|
| |
| void | cut_clipboard () |
| | Removes the contents of the currently selected content in the editable and puts it on the clipboard.
|
| |
| void | copy_clipboard () |
| | Copies the contents of the currently selected content in the editable and puts it on the clipboard.
|
| |
| void | paste_clipboard () |
| | Pastes the content of the clipboard to the current position of the cursor in the editable.
|
| |
| void | delete_selection () |
| | Deletes the currently selected text of the editable.
|
| |
| void | set_editable (bool is_editable=true) |
| | Determines if the user can edit the text in the editable widget or not.
|
| |
| bool | get_editable () const |
| | Retrieves whether editable is editable.
|
| |
| void | insert_text (const Glib::ustring &new_text, int new_text_length, int & position) |
| | Inserts new_text_length bytes of new_text into the contents of the widget, at position position.
|
| |
| void | delete_text (int start_pos, int end_pos) |
| | Deletes a sequence of characters.
|
| |
| Glib::ustring | get_chars (int start_pos, int end_pos) const |
| | Retrieves a sequence of characters.
|
| |
| void | select_region (int start_pos, int end_pos) |
| | Selects a region of text.
|
| |
| bool | get_selection_bounds (int &start_pos, int &end_pos) const |
| | Retrieves the selection bound of the editable.
|
| |
| void | set_position (int position) |
| | Sets the cursor position in the editable to the given value.
|
| |
| int | get_position () const |
| | Retrieves the current position of the cursor relative to the start of the content of the editable.
|
| |
| Glib::SignalProxy< void, const Glib::ustring &, int * > | signal_insert_text () |
| |
| Glib::SignalProxy< void, int, int > | signal_delete_text () |
| |
| Glib::SignalProxy< void > | signal_changed () |
| |
| | Interface () |
| |
| | Interface (Interface &&src) noexcept |
| |
| Interface & | operator= (Interface &&src) noexcept |
| |
| | Interface (const Glib::Interface_Class &interface_class) |
| |
| | Interface (GObject *castitem) |
| |
| | ~Interface () noexcept override |
| |
| | Interface (const Interface &)=delete |
| |
| Interface & | operator= (const Interface &)=delete |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| | ObjectBase (const ObjectBase &)=delete |
| |
| ObjectBase & | operator= (const ObjectBase &)=delete |
| |
| void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
| |
| void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
| |
| void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
| |
| void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
| |
| void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
| |
| void | freeze_notify () |
| |
| void | thaw_notify () |
| |
| virtual void | reference () const |
| |
| virtual void | unreference () const |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| GObject * | gobj_copy () const |
| |
| | trackable () noexcept |
| |
| | trackable (const trackable &src) noexcept |
| |
| | trackable (trackable &&src) |
| |
| | ~trackable () |
| |
| void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
| |
| void | notify_callbacks () |
| |
| trackable & | operator= (const trackable &src) |
| |
| trackable & | operator= (trackable &&src) |
| |
| void | remove_destroy_notify_callback (void *data) const |
| |
Base class for text-editing widgets.
The Gtk::Editable class is a base class for widgets for editing text, such as Gtk::Entry. It cannot be instantiated by itself. The editable class contains functions for generically manipulating an editable widget, a large number of action signals used for key bindings, and several signals that an application can connect to to modify the behavior of a widget.
| void Gtk::Editable::delete_text |
( |
int | start_pos, |
|
|
int | end_pos ) |
Deletes a sequence of characters.
The characters that are deleted are those characters at positions from start_pos up to, but not including end_pos. If end_pos is negative, then the characters deleted are those from start_pos to the end of the text.
Note that the positions are specified in characters, not bytes.
- Parameters
-
| start_pos | Start position. |
| end_pos | End position. |
| Glib::ustring Gtk::Editable::get_chars |
( |
int | start_pos, |
|
|
int | end_pos ) const |
Retrieves a sequence of characters.
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 characters retrieved are those characters from start_pos to the end of the text.
Note that positions are specified in characters, not bytes.
- Parameters
-
| start_pos | Start of text. |
| end_pos | End of text. |
- Returns
- A pointer to the contents of the widget as a string. This string is allocated by the Gtk::Editable implementation and should be freed by the caller.
| void Gtk::Editable::select_region |
( |
int | start_pos, |
|
|
int | end_pos ) |
Selects a region of text.
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 are those characters from start_pos to the end of the text.
Note that positions are specified in characters, not bytes.
- Parameters
-
| start_pos | Start of region. |
| end_pos | End of region. |