Function gtk_test::mouse_move
source · [−]Expand description
Move the mouse relative to the widget position.
Example:
extern crate gtk;
#[macro_use]
extern crate gtk_test;
use gtk::Button;
gtk::init().expect("GTK init failed");
let but = Button::new();
gtk_test::mouse_move(&but, 0, 0); // the mouse will be on the top-left corner of the button