Class

GtkEmojiChooser

[]

Description [src]

final class Gtk.EmojiChooser : Gtk.Popover
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.ShortcutManager {
  /* No available fields */
}

Used by text widgets to let users insert Emoji characters.

An example GtkEmojiChooser

GtkEmojiChooser emits the GtkEmojiChooser::emoji-picked signal when an Emoji is selected.

Shortcuts and Gestures

GtkEmojiChooser supports the following keyboard shortcuts:

  • Ctrl+N scrolls th the next section.
  • Ctrl+P scrolls th the previous section.

Actions

GtkEmojiChooser defines a set of built-in actions:

  • scroll.section scrolls to the next or previous section.

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.

[]

Hierarchy

hierarchy this GtkEmojiChooser implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 implements_3 GtkNative this--implements_3 implements_4 GtkShortcutManager this--implements_4 ancestor_0 GtkPopover ancestor_0--this ancestor_1 GtkWidget ancestor_1--ancestor_0 ancestor_2 GInitiallyUnowned ancestor_2--ancestor_1 ancestor_3 GObject ancestor_3--ancestor_2
[]

Constructors

gtk_emoji_chooser_new

Creates a new GtkEmojiChooser.

[]

Instance methods

Methods inherited from GtkPopover (20)
Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
Methods inherited from GtkNative (5)
[]

Properties

Properties inherited from GtkPopover (8)
Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
[]

Signals

Gtk.EmojiChooser::emoji-picked

Emitted when the user selects an Emoji.

Signals inherited from GtkPopover (2)
Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure