Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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-searchbar │ ╰── entry.search ╰── box.emoji-toolbar ├── button.image-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 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 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.
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, 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 EmojiChooser
.
Signals
emojiPicked
type C_EmojiChooserEmojiPickedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EmojiChooserEmojiPickedCallback Source #
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