Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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
- newtype EmojiChooser = EmojiChooser (ManagedPtr EmojiChooser)
- class (GObject o, IsDescendantOf EmojiChooser o) => IsEmojiChooser o
- toEmojiChooser :: (MonadIO m, IsEmojiChooser o) => o -> m EmojiChooser
- emojiChooserNew :: (HasCallStack, MonadIO m) => m EmojiChooser
- type C_EmojiChooserEmojiPickedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type EmojiChooserEmojiPickedCallback = Text -> IO ()
- afterEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> EmojiChooserEmojiPickedCallback -> m SignalHandlerId
- genClosure_EmojiChooserEmojiPicked :: MonadIO m => EmojiChooserEmojiPickedCallback -> m (GClosure C_EmojiChooserEmojiPickedCallback)
- mk_EmojiChooserEmojiPickedCallback :: C_EmojiChooserEmojiPickedCallback -> IO (FunPtr C_EmojiChooserEmojiPickedCallback)
- noEmojiChooserEmojiPickedCallback :: Maybe EmojiChooserEmojiPickedCallback
- onEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> EmojiChooserEmojiPickedCallback -> m SignalHandlerId
- wrap_EmojiChooserEmojiPickedCallback :: EmojiChooserEmojiPickedCallback -> C_EmojiChooserEmojiPickedCallback
Exported types
newtype EmojiChooser Source #
Memory-managed wrapper type.
Instances
Eq EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser (==) :: EmojiChooser -> EmojiChooser -> Bool # (/=) :: EmojiChooser -> EmojiChooser -> Bool # | |
IsGValue EmojiChooser Source # | Convert |
Defined in GI.Gtk.Objects.EmojiChooser toGValue :: EmojiChooser -> IO GValue # fromGValue :: GValue -> IO EmojiChooser # | |
ManagedPtrNewtype EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
TypedObject EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
GObject EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
HasParentTypes EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
type ParentTypes EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser type ParentTypes EmojiChooser = '[Popover, Widget, Object, ImplementorIface, Buildable, ConstraintTarget, Native, ShortcutManager] |
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
(GObject o, IsDescendantOf EmojiChooser o) => IsEmojiChooser o Source # | |
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
:: (HasCallStack, MonadIO m) | |
=> m EmojiChooser | Returns: a new |
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 #
= Text |
|
-> 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
genClosure_EmojiChooserEmojiPicked :: MonadIO m => EmojiChooserEmojiPickedCallback -> m (GClosure C_EmojiChooserEmojiPickedCallback) Source #
Wrap the callback into a GClosure
.
mk_EmojiChooserEmojiPickedCallback :: C_EmojiChooserEmojiPickedCallback -> IO (FunPtr C_EmojiChooserEmojiPickedCallback) Source #
Generate a function pointer callable from C code, from a C_EmojiChooserEmojiPickedCallback
.
noEmojiChooserEmojiPickedCallback :: Maybe EmojiChooserEmojiPickedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EmojiChooserEmojiPickedCallback
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