EmojiChooser

The GtkEmojiChooser is used by text widgets such as GtkEntry or GtkTextView to let users insert Emoji characters.

An example GtkEmojiChooser

GtkEmojiChooser 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 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.

Constructors

this
this(GtkEmojiChooser* gtkEmojiChooser, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new GtkEmojiChooser.

Members

Functions

addOnEmojiPicked
gulong addOnEmojiPicked(void delegate(string, EmojiChooser) dlg, ConnectFlags connectFlags)

Emitted when the user selects an Emoji.

getEmojiChooserStruct
GtkEmojiChooser* getEmojiChooserStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkEmojiChooser
GtkEmojiChooser* gtkEmojiChooser;

the main Gtk struct

Inherited Members

From Popover

gtkPopover
GtkPopover* gtkPopover;

the main Gtk struct

getPopoverStruct
GtkPopover* getPopoverStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin NativeT!(GtkPopover)
Undocumented in source.
__anonymous
mixin ShortcutManagerT!(GtkPopover)
Undocumented in source.
getType
GType getType()
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
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_set_offset().

getPointingTo
bool getPointingTo(GdkRectangle rect)

Gets the rectangle that the popover points to.

getPosition
GtkPositionType getPosition()

Returns the preferred position of @popover.

popdown
void popdown()

Pops @popover down.

popup
void popup()

Pops @popover up.

present
void present()

Presents the popover to the user.

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(Widget child)

Sets the child widget of @popover.

setDefaultWidget
void setDefaultWidget(Widget widget)

Sets the default widget of a GtkPopover.

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(GdkRectangle* rect)

Sets the rectangle that @popover points to.

setPosition
void setPosition(GtkPositionType position)

Sets the preferred position for @popover to appear.

addOnActivateDefault
gulong addOnActivateDefault(void delegate(Popover) dlg, ConnectFlags connectFlags)

Emitted whend the user activates the default widget.

addOnClosed
gulong addOnClosed(void delegate(Popover) dlg, ConnectFlags connectFlags)

Emitted when the popover is closed.

Meta