About my projects, examples and tutorials
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.

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/emojichooser.png> :width<30\%>

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.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/EmojiChooser.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

new-emojichooser§

Creates a new Gnome::Gtk4::EmojiChooser.

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

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,
  *%user-options
)
Code
  • $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 is a native Gnome::Gtk4::EmojiChooser object.
  • %user-options; A list of named arguments provided by .register-signal() in class Object.