x
,y
) corrdinates
within window
and simulate a button press or release event.
Because the mouse pointer needs to be warped to the target
location, use of this function outside of test programs that
run in their own virtual windowing system (e.g. Xvfb) is not
recommended.
Also, gtkTestSimulateButton()
is a fairly low level function,
for most testing purposes, gtkTestWidgetClick
is the right
function to call which will generate a button press event followed
by its accompanying button release event.gdkTestSimulateButton(window, x, y, button, modifiers, button.pressrelease)
window
x
window
for the button event.y
window
for the button event.button
modifiers
button.pressrelease
GDK_BUTTON_PRESS
or GDK_BUTTON_RELEASE