PopupIF

A GdkPopup is a surface that is attached to another surface.

The GdkPopup is positioned relative to its parent surface.

GdkPopups are typically used to implement menus and similar popups. They can be modal, which is indicated by the [property@GdkPopup:autohide] property.

Members

Functions

getAutohide
bool getAutohide()

Returns whether this popup is set to hide on outside clicks.

getParent
Surface getParent()

Returns the parent surface of a popup.

getPopupStruct
GdkPopup* getPopupStruct(bool transferOwnership)

Get the main Gtk struct

getPositionX
int getPositionX()

Obtains the position of the popup relative to its parent.

getPositionY
int getPositionY()

Obtains the position of the popup relative to its parent.

getRectAnchor
GdkGravity getRectAnchor()

Gets the current popup rectangle anchor.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSurfaceAnchor
GdkGravity getSurfaceAnchor()

Gets the current popup surface anchor.

present
bool present(int width, int height, PopupLayout layout)

Present @popup after having processed the #GdkPopupLayout rules.

Static functions

getType
GType getType()

Meta