GdkPopupLayout* gdk_popup_layout_new ( const GdkRectangle* anchor_rect, GdkGravity rect_anchor, GdkGravity surface_anchor )
Create a popup layout description.
Used together with gdk_popup_present() 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.
surface_anchor determine anchor points on
and surface to pin together.
The position of
anchor_rect‘s anchor point can optionally be offset using
gdk_popup_layout_set_offset(), which is equivalent to offsetting the
position of surface.
Newly created instance of
|The caller of the function takes ownership of the data, and is responsible for freeing it.|