Popup

interface Popup

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@Gdk.Popup:autohide property.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val autohide: Boolean

Whether to hide on outside clicks.

Link copied to clipboard
abstract val gdkPopupPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val parent: Surface?

The parent surface.

Functions

Link copied to clipboard
open fun getAutohide(): Boolean

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

Link copied to clipboard
open fun getParent(): Surface?

Returns the parent surface of a popup.

Link copied to clipboard
open fun getPositionX(): <Error class: unknown class>

Obtains the position of the popup relative to its parent.

Link copied to clipboard
open fun getPositionY(): <Error class: unknown class>

Obtains the position of the popup relative to its parent.

Link copied to clipboard

Gets the current popup rectangle anchor.

Link copied to clipboard

Gets the current popup surface anchor.

Link copied to clipboard
open fun present(width: <Error class: unknown class>, height: <Error class: unknown class>, layout: PopupLayout): Boolean

Present @popup after having processed the GdkPopupLayout rules.