Package: gdk

Function gdk:popup-layout-new

Lambda List

gdk:popup-layout-new (rect rect-anchor surface-anchor)

Arguments

rect -- a gdk:rectangle instance with the anchor rectangle to align surface with
rect-anchor -- a gdk:gravity value with the point on rect to align with the anchor point of the surface
surface-anchor -- a gdk:gravity value with the point on surface to align with the anchor point of rect

Return Value

The newly created gdk:popup-layout instance.

Details

Create a popup layout description. Used together with the gdk:popup-present function to describe how a popup surface should be placed and behave on-screen.

The rectangle is relative to the top-left corner of the parent of the surface. The rect-anchor and surface-anchor values determine anchor points on the rectangle and surface to pin together.

The position of the anchor point of the rectangle can optionally be offset using the gdk:popup-layout-offset function, which is equivalent to offsetting the position of surface.
 

See also

2024-2-17