[ Version ( deprecated = true , deprecated_since = "3.20" , since = "2.14" ) ]
public bool test_widget_click (Widget widget, uint button, ModifierType modifiers)
Warning: test_widget_click is deprecated since 3.20.
This function will generate a
button click (button press and button release event) in the middle of the first GdkWindow found that
This testing infrastructure is phased out in favor of reftests.
For windowless widgets like Button (which returns false from get_has_window), this will often be an input-only event window. For other widgets, this is usually widget->window. Certain caveats should be considered when using this function, in particular because the mouse pointer is warped to the button click location, see test_simulate_button for details.
Widget to generate a button click on.
Number of the pointer button for the event, usually 1, 2 or 3.
Keyboard modifiers the event is setup with.
whether all actions neccessary for the button click simulation were carried out successfully.