EditableLabelRef
public struct EditableLabelRef : EditableLabelProtocol, GWeakCapturing
A GtkEditableLabel is a label that allows users to
edit the text by switching to an “edit mode”.

GtkEditableLabel does not have API of its own, but it
implements the [ifaceGtk.Editable] 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 [classGtk.Text].
The EditableLabelRef type acts as a lightweight Swift reference to an underlying GtkEditableLabel instance.
It exposes methods that can operate on this data type through EditableLabelProtocol conformance.
Use EditableLabelRef only as an unowned reference to an existing GtkEditableLabel instance.
-
Untyped pointer to the underlying `GtkEditableLabel` instance.For type-safe access, use the generated, typed pointer
editable_label_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkEditableLabel>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkEditableLabel>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkEditableLabel>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkEditableLabel>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
EditableLabelProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : EditableLabelProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> EditableLabelRef where T : EditableLabelProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EditableLabelProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EditableLabelProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EditableLabelProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EditableLabelProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EditableLabelProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new
GtkEditableLabelwidget.Declaration
Swift
@inlinable init(str: UnsafePointer<CChar>!)
View on GitHub
Install in Dash
EditableLabelRef Structure Reference