Menu.popupAtRect

Displays menu and makes it available for selection.

See gtk_menu_popup_at_widget () and gtk_menu_popup_at_pointer (), which handle more common cases for popping up menus.

menu will be positioned at rect, aligning their anchor points. rect is relative to the top-left corner of rect_window. rect_anchor and menu_anchor determine anchor points on rect and menu to pin together. menu can optionally be offset by rect-anchor-dx and rect-anchor-dy.

Anchors should be specified under the assumption that the text direction is left-to-right; they will be flipped horizontally automatically if the text direction is right-to-left.

Other properties that influence the behaviour of this function are anchor-hints and menu-type-hint. Connect to the popped-up signal to find out how it was actually positioned.

Parameters

rectWindow Window

the gdk.Window rect is relative to

rect GdkRectangle*

the gdk.Rectangle to align menu with

rectAnchor GdkGravity

the point on rect to align with menu's anchor point

menuAnchor GdkGravity

the point on menu to align with rect's anchor point

triggerEvent Event

the gdk.Event that initiated this request or NULL if it's the current event

Meta

Since

3.22