About all my projects
Gnome::Gtk4::EmojiChooser

Gnome::Gtk4::EmojiChooser

Description

The Gnome::Gtk4::EmojiChooser is used by text widgets such as Gnome::Gtk4::Entry or Gnome::Gtk4::TextView to let users insert Emoji characters.

No caption

Gnome::Gtk4::EmojiChooser emits the emoji-picked signal when an Emoji is selected.

CSS nodes

Every Gnome::Gtk4::EmojiChooser 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.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-emojichooser

Creates a new Gnome::Gtk4::EmojiChooser.

method new-emojichooser ( --> Gnome::Gtk4::EmojiChooser \)

Signals

emoji-picked

Emitted when the user selects an Emoji.

method handler (
  Str $text,
  Int :$_handle_id,
  N-GObject :$_native-object,
  Gnome::Gtk4::EmojiChooser :$_widget,
  *C<user>-options
)
  • $text; the Unicode sequence for the picked Emoji, in UTF-8.

  • $_handle_id; The registered event handler id.

  • $_native-object; The native object provided by the Raku object which registered this event. This a native Gnome::Gtk4::EmojiChooser object.

  • $_widget; The object which registered the signal. User code may have left the object going out of scope.

  • user-options; A list of named arguments provided at the .register-signal() method from Gnome::GObject::Object.