gi-gtk-4.0.6: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.EmojiChooser

Description

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

Exported types

newtype EmojiChooser Source #

Memory-managed wrapper type.

Constructors

EmojiChooser (ManagedPtr EmojiChooser) 

Instances

Instances details
Eq EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

GObject EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

ManagedPtrNewtype EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

Methods

toManagedPtr :: EmojiChooser -> ManagedPtr EmojiChooser

TypedObject EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

Methods

glibType :: IO GType

HasParentTypes EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

IsGValue (Maybe EmojiChooser) Source #

Convert EmojiChooser to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.EmojiChooser

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe EmojiChooser -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe EmojiChooser)

type ParentTypes EmojiChooser Source # 
Instance details

Defined in GI.Gtk.Objects.EmojiChooser

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

Click to display all available methods, including inherited ones

Expand

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

emojiChooserNew Source #

Arguments

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

Returns: a new GtkEmojiChooser

Creates a new GtkEmojiChooser.

Signals

emojiPicked

type EmojiChooserEmojiPickedCallback Source #

Arguments

 = Text

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

-> IO () 

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