new

fun new(anchorRect: Rectangle, rectAnchor: Gravity, surfaceAnchor: Gravity): PopupLayout

Create a popup layout description.

Used together with method@Gdk.Popup.present to describe how a popup surface should be placed and behave on-screen.

Return

newly created instance of GdkPopupLayout

Parameters

anchorRect

the anchor GdkRectangle to align @surface with

rectAnchor

the point on @anchor_rect to align with @surface's anchor point

surfaceAnchor

the point on @surface to align with @rect's anchor point