EmojiChooser

The gtk.emoji_chooser.EmojiChooser is used by text widgets such as gtk.entry.Entry or gtk.text_view.TextView to let users insert Emoji characters.

An example GtkEmojiChooser

gtk.emoji_chooser.EmojiChooser emits the signal@Gtk.EmojiChooser::emoji-picked 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 gtk.emoji_chooser.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.

Constructors

this
this()

Creates a new gtk.emoji_chooser.EmojiChooser.

Members

Functions

connectEmojiPicked
ulong connectEmojiPicked(T callback, Flag!"After" after)

Connect to EmojiPicked signal.

Inherited Members

From Popover

getAutohide
bool getAutohide()

Returns whether the popover is modal.

getCascadePopdown
bool getCascadePopdown()

Returns whether the popover will close after a modal child is closed.

getChild
gtk.widget.Widget getChild()

Gets the child widget of popover.

getHasArrow
bool getHasArrow()

Gets whether this popover is showing an arrow pointing at the widget that it is relative to.

getMnemonicsVisible
bool getMnemonicsVisible()

Gets whether mnemonics are visible.

getOffset
void getOffset(int xOffset, int yOffset)

Gets the offset previous set with gtk.popover.Popover.setOffset.

getPointingTo
bool getPointingTo(gdk.rectangle.Rectangle rect)

Gets the rectangle that the popover points to.

getPosition
gtk.types.PositionType getPosition()

Returns the preferred position of popover.

popdown
void popdown()

Pops popover down.

popup
void popup()

Pops popover up.

present
void present()

Allocate a size for the gtk.popover.Popover.

setAutohide
void setAutohide(bool autohide)

Sets whether popover is modal.

setCascadePopdown
void setCascadePopdown(bool cascadePopdown)

If cascade_popdown is true, the popover will be closed when a child modal popover is closed.

setChild
void setChild(gtk.widget.Widget child)

Sets the child widget of popover.

setDefaultWidget
void setDefaultWidget(gtk.widget.Widget widget)

Sets the default widget of a gtk.popover.Popover.

setHasArrow
void setHasArrow(bool hasArrow)

Sets whether this popover should draw an arrow pointing at the widget it is relative to.

setMnemonicsVisible
void setMnemonicsVisible(bool mnemonicsVisible)

Sets whether mnemonics should be visible.

setOffset
void setOffset(int xOffset, int yOffset)

Sets the offset to use when calculating the position of the popover.

setPointingTo
void setPointingTo(gdk.rectangle.Rectangle rect)

Sets the rectangle that popover points to.

setPosition
void setPosition(gtk.types.PositionType position)

Sets the preferred position for popover to appear.

connectActivateDefault
ulong connectActivateDefault(T callback, Flag!"After" after)

Connect to ActivateDefault signal.

connectClosed
ulong connectClosed(T callback, Flag!"After" after)

Connect to Closed signal.