Property

GtkMenu:anchor-hints

Declaration

property anchor-hints: Gdk.AnchorHints [ read, write, construct ]

Description [src]

Positioning hints for aligning the menu relative to a rectangle.

These hints determine how the menu should be positioned in the case that the menu would fall off-screen if placed in its ideal position.

For example, GDK_ANCHOR_FLIP_Y will replace GDK_GRAVITY_NORTH_WEST with GDK_GRAVITY_SOUTH_WEST and vice versa if the menu extends beyond the bottom edge of the monitor.

See gtk_menu_popup_at_rect (), gtk_menu_popup_at_widget (), gtk_menu_popup_at_pointer (), GtkMenu:rect-anchor-dx, GtkMenu:rect-anchor-dy, GtkMenu:menu-type-hint, and GtkMenu::popped-up.

Type: GdkAnchorHints
Available since:3.22

Flags

Readableyes
Writableyes
Constructyes
Construct onlyno