EmojiChooserRef
public struct EmojiChooserRef : EmojiChooserProtocol, GWeakCapturing
The GtkEmojiChooser
is used by text widgets such as GtkEntry
or
GtkTextView
to let users insert Emoji characters.
GtkEmojiChooser
emits the [signalGtk.EmojiChooser::emoji-picked
]
signal when an Emoji is selected.
CSS nodes
popover
├── box.emoji-searchbar
│ ╰── entry.search
╰── box.emoji-toolbar
├── button.image-button.emoji-section
├── ...
╰── button.image-button.emoji-section
Every GtkEmojiChooser
consists of a main node called popover.
The contents of the popover are largely implementation defined
and supposed to inherit general styles.
The top searchbar used to search emoji and gets the .emoji-searchbar
style class itself.
The bottom toolbar used to switch between different emoji categories
consists of buttons with the .emoji-section style class and gets the
.emoji-toolbar style class itself.
The EmojiChooserRef
type acts as a lightweight Swift reference to an underlying GtkEmojiChooser
instance.
It exposes methods that can operate on this data type through EmojiChooserProtocol
conformance.
Use EmojiChooserRef
only as an unowned
reference to an existing GtkEmojiChooser
instance.
-
Untyped pointer to the underlying `GtkEmojiChooser` instance.
For type-safe access, use the generated, typed pointer
emoji_chooser_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkEmojiChooser>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkEmojiChooser>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkEmojiChooser>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkEmojiChooser>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
EmojiChooserProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : EmojiChooserProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> EmojiChooserRef where T : EmojiChooserProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
EmojiChooserProtocol
.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
EmojiChooserProtocol
.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
EmojiChooserProtocol
.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
EmojiChooserProtocol
.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
EmojiChooserProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a new
GtkEmojiChooser
.Declaration
Swift
@inlinable init()