[ CCode ( has_construct_function = false ) ]
public PopupLayout (Rectangle anchor_rect, Gravity rect_anchor, Gravity surface_anchor)
Create a popup layout description.
Used together with [[email protected]] to describe how a popup surface should be placed and behave on-screen.
anchor_rect
is relative to the top-left corner of the surface's parent. rect_anchor
and surface_anchor
determine anchor points on anchor_rect
and surface to pin together.
The position of anchor_rect
's anchor point can optionally be offset using [[email protected]_offset], which is
equivalent to offsetting the position of surface.
anchor_rect |
the anchor `GdkRectangle` to align |
rect_anchor |
the point on |
surface_anchor |
the point on |
newly created instance of `GdkPopupLayout` |