[][src]Function gtk_test::mouse_move

pub fn mouse_move<W: IsA<Object> + IsA<Widget> + WidgetExt>(
    widget: &W,
    x: i32,
    y: i32
)

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