popped_up
Description:
public signal void popped_up (Rectangle flipped_rect, Rectangle final_rect, bool flipped_x, bool flipped_y)
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.
![](popup-slide.png)
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 (), anchor_hints, rect_anchor_dx, rect_anchor_dy, and menu_type_hint.
Parameters:
flipped_rect |
the position of |
final_rect |
the final position of |
flipped_x |
true if the anchors were flipped horizontally |
flipped_y |
true if the anchors were flipped vertically |