PopupT

A gdk.popup.Popup is a surface that is attached to another surface.

The gdk.popup.Popup is positioned relative to its parent surface.

gdk.popup.Popups are typically used to implement menus and similar popups. They can be modal, which is indicated by the gdk.popup.Popup.gboolean property.

Members

Functions

getAutohide
bool getAutohide()

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

getParent
gdk.surface.Surface getParent()

Returns the parent surface of a popup.

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
gdk.types.Gravity getRectAnchor()

Gets the current popup rectangle anchor.

getSurfaceAnchor
gdk.types.Gravity getSurfaceAnchor()

Gets the current popup surface anchor.

present
bool present(int width, int height, gdk.popup_layout.PopupLayout layout)

Present popup after having processed the gdk.popup_layout.PopupLayout rules.