Gtk.EditableLabel (original) (raw)
Class
GtkEditableLabel
Description [src]
final class Gtk.EditableLabel : Gtk.Widget
implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Editable {
/* No available fields */
}
Allows users to edit the displayed text by switching to an “edit mode”.
GtkEditableLabel
does not have API of its own, but it implements the GtkEditable interface.
The default bindings for activating the edit mode is to click or press the Enter key. The default bindings for leaving the edit mode are the Enter key (to save the results) or the Escape key (to cancel the editing).
Shortcuts and Gestures
GtkEditableLabel
supports the following keyboard shortcuts:
- Enter starts editing.
- Escape stops editing.
Actions
GtkEditableLabel
defines a set of built-in actions:
editing.starts
switches the widget into editing mode.editing.stop
switches the widget out of editing mode.
CSS nodes
editablelabel[.editing] ╰── stack ├── label ╰── text
GtkEditableLabel
has a main node with the name editablelabel. When the entry is in editing mode, it gets the .editing style class.
For all the subnodes added to the text node in various situations, see GtkText.
Constructors
Instance methods
Methods inherited from GObject (43)
Please see GObject for a full list of methods.
Properties
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GtkEditableLabelClass {
GtkWidgetClass parent_class;
}
No description available.
Class members
parent_class: GtkWidgetClass
No description available.