present

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

Present @popup after having processed the GdkPopupLayout rules.

If the popup was previously not showing, it will be shown, otherwise it will change position according to @layout.

After calling this function, the result should be handled in response to the signal@Gdk.Surface::layout signal being emitted. The resulting popup position can be queried using method@Gdk.Popup.get_position_x, method@Gdk.Popup.get_position_y, and the resulting size will be sent as parameters in the layout signal. Use method@Gdk.Popup.get_rect_anchor and method@Gdk.Popup.get_surface_anchor to get the resulting anchors.

Presenting may fail, for example if the @popup is set to autohide and is immediately hidden upon being presented. If presenting failed, the signal@Gdk.Surface::layout signal will not me emitted.

Return

false if it failed to be presented, otherwise true.

Parameters

width

the unconstrained popup width to layout

height

the unconstrained popup height to layout

layout

the GdkPopupLayout object used to layout