signal callback delegate or function to connect
void callback(void* flippedRect, void* finalRect, bool flippedX, bool flippedY, gtk.menu.Menu menu)
flippedRect the position of menu after any possible flipping or null if the backend can't obtain it (optional)
finalRect the final position of menu or null if the backend can't obtain it (optional)
flippedX true if the anchors were flipped horizontally (optional)
flippedY true if the anchors were flipped vertically (optional)
menu the instance the signal is connected to (optional)
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to PoppedUp signal.
Emitted when the position of menu is finalized after being popped up using gtk_menu_popup_at_rect (), gtk_menu_popup_at_widget (), or gtk_menu_popup_at_pointer ().
menu might be flipped over the anchor rectangle in order to keep it on-screen, in which case flipped_x and flipped_y will be set to true accordingly.
flipped_rect is the ideal position of menu after any possible flipping, but before any possible sliding. final_rect is flipped_rect, but possibly translated in the case that flipping is still ineffective in keeping menu on-screen.
The blue menu is menu's ideal position, the green menu is flipped_rect, and the red menu is final_rect.
See gtk_menu_popup_at_rect (), gtk_menu_popup_at_widget (), gtk_menu_popup_at_pointer (), #GtkMenu:anchor-hints, #GtkMenu:rect-anchor-dx, #GtkMenu:rect-anchor-dy, and #GtkMenu:menu-type-hint.