Function wx_rs::set_cursor

source ·
pub fn set_cursor(cursor: CursorType)
Examples found in repository?
examples/cursor.rs (line 18)
13
14
15
16
17
18
19
20
21
22
extern "C" fn handle_event(event: *const c_void) {
    match wx_rs::get_event_type(event) {
        EventType::MouseLeftUp => {
            let cursor = CURSORS.with(|r| unsafe { r.get().as_mut().unwrap().next().unwrap() });
            println!("set_cursor: {:?}", cursor);
            wx_rs::set_cursor(*cursor);
        }
        _ => (),
    }
}