gi-gtk-4.0.2: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.EmojiChooser

Description

The EmojiChooser popover is used by text widgets such as Entry or TextView to offer users a convenient way to insert Emoji characters.

GtkEmojiChooser emits the emojiPicked signal when an Emoji is selected.

CSS nodes

plain code

popover
╰── box.emoji-toolbar
    ├── button.iamge-button.emoji-section
    ├── ...
    ╰── button.image-button.emoji-section

Every EmojiChooser consists of a main node called popover. The contents of the popover are largely implementation defined and supposed to inherit general styles. 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.

Synopsis

Exported types

class (GObject o, IsDescendantOf EmojiChooser o) => IsEmojiChooser o Source #

Type class for types which can be safely cast to EmojiChooser, for instance with toEmojiChooser.

Instances

Instances details
(GObject o, IsDescendantOf EmojiChooser o) => IsEmojiChooser o Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

toEmojiChooser :: (MonadIO m, IsEmojiChooser o) => o -> m EmojiChooser Source #

Cast to EmojiChooser, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

emojiChooserNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m EmojiChooser

Returns: a new EmojiChooser

Creates a new EmojiChooser.

Signals

emojiPicked

type C_EmojiChooserEmojiPickedCallback = Ptr () -> CString -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type EmojiChooserEmojiPickedCallback Source #

Arguments

 = Text

text: the Unicode sequence for the picked Emoji, in UTF-8

-> IO () 

The emojiPicked signal is emitted when the user selects an Emoji.

afterEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> EmojiChooserEmojiPickedCallback -> m SignalHandlerId Source #

Connect a signal handler for the emojiPicked signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after emojiChooser #emojiPicked callback

onEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> EmojiChooserEmojiPickedCallback -> m SignalHandlerId Source #

Connect a signal handler for the emojiPicked signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on emojiChooser #emojiPicked callback