Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The GtkEmojiChooser
is used by text widgets such as GtkEntry
or
GtkTextView
to let users insert Emoji characters.
GtkEmojiChooser
emits the EmojiChooser::emojiPicked
signal when an Emoji is selected.
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.
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 EmojiChooserEmojiPickedCallback = Text -> IO ()
- afterEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> ((?self :: a) => EmojiChooserEmojiPickedCallback) -> m SignalHandlerId
- onEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> ((?self :: a) => EmojiChooserEmojiPickedCallback) -> m SignalHandlerId
Exported types
newtype EmojiChooser Source #
Memory-managed wrapper type.
EmojiChooser (ManagedPtr EmojiChooser) |
Instances
Eq EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser (==) :: EmojiChooser -> EmojiChooser -> Bool # (/=) :: EmojiChooser -> EmojiChooser -> Bool # | |
GObject EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
ManagedPtrNewtype EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser toManagedPtr :: EmojiChooser -> ManagedPtr EmojiChooser | |
TypedObject EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
HasParentTypes EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser | |
IsGValue (Maybe EmojiChooser) Source # | Convert |
Defined in GI.Gtk.Objects.EmojiChooser gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe EmojiChooser -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe EmojiChooser) | |
type ParentTypes EmojiChooser Source # | |
Defined in GI.Gtk.Objects.EmojiChooser type ParentTypes EmojiChooser = '[Popover, Widget, Object, Accessible, 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
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, popdown, popup, present, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getAutohide, getBuildableId, getCanFocus, getCanTarget, getCascadePopdown, getChild, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasArrow, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMnemonicsVisible, getName, getNative, getNextSibling, getOffset, getOpacity, getOverflow, getPangoContext, getParent, getPointingTo, getPosition, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setAutohide, setCanFocus, setCanTarget, setCascadePopdown, setChild, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDefaultWidget, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasArrow, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setName, setOffset, setOpacity, setOverflow, setParent, setPointingTo, setPosition, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.
new
:: (HasCallStack, MonadIO m) | |
=> m EmojiChooser | Returns: a new |
Creates a new GtkEmojiChooser
.
Signals
emojiPicked
type EmojiChooserEmojiPickedCallback Source #
Emitted when the user selects an Emoji.
afterEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> ((?self :: 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
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onEmojiChooserEmojiPicked :: (IsEmojiChooser a, MonadIO m) => a -> ((?self :: 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