Function
Gdk.PopupLayout.new
Declaration [src]
GdkPopupLayout*
gdk_popup_layout_new (
const GdkRectangle* anchor_rect,
GdkGravity rect_anchor,
GdkGravity surface_anchor
)
Description [src]
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.
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
gdk_popup_layout_set_offset()
, which is equivalent to offsetting the
position of surface.
Parameters
anchor_rect |
GdkRectangle |
the anchor |
|
Ownership is not transferred to the callee | |
rect_anchor |
GdkGravity |
the point on |
|
surface_anchor |
GdkGravity |
the point on |
Return value
Returns: GdkPopupLayout |
|
newly created instance of |
|
Ownership of the data is transferred to the caller |