Function
GtkMenuPositionFunc
Declaration
void
(* GtkMenuPositionFunc) (
GtkMenu* menu,
gint* x,
gint* y,
gboolean* push_in,
gpointer user_data
)
Description [src]
A user function supplied when calling gtk_menu_popup()
which
controls the positioning of the menu when it is displayed. The
function sets the x
and y
parameters to the coordinates where the
menu is to be drawn. To make the menu appear on a different
monitor than the mouse pointer, gtk_menu_set_monitor()
must be called.
Parameters
menu |
GtkMenu |
A |
|
The data is owned by the caller of the function. | |
x |
gint* |
Address of the #gint representing the horizontal position where the menu shall be drawn. |
|
The argument will be modified by the function. | |
y |
gint* |
Address of the #gint representing the vertical position where the menu shall be drawn. This is an output parameter. |
|
The argument will be modified by the function. | |
push_in |
gboolean* |
This parameter controls how menus placed outside
the monitor are handled. If this is set to |
|
The argument will be set by the function. | |
user_data |
gpointer |
The data supplied by the user in the |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |