EditableLabel


Object Hierarchy:

Gtk.EditableLabel Gtk.EditableLabel Gtk.EditableLabel Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.EditableLabel GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.EditableLabel Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.EditableLabel Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.EditableLabel Gtk.ConstraintTarget->Gtk.Widget Gtk.Editable Gtk.Editable Gtk.Editable->Gtk.EditableLabel

Description:

[ CCode ( type_id = "gtk_editable_label_get_type ()" ) ]
public class EditableLabel : Widget, Accessible, Buildable, ConstraintTarget, Editable

A `GtkEditableLabel` is a label that allows users to edit the text by switching to an “edit mode”.

![An example GtkEditableLabel](editable-label.png)

`GtkEditableLabel` does not have API of its own, but it implements the [[email protected]] 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).

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 [[email protected]].


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object



2022 vala-language.org