gdk4/auto/
motion_event.rs1use crate::ffi;
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9 #[doc(alias = "GdkMotionEvent")]
10 pub struct MotionEvent(Shared<ffi::GdkMotionEvent>);
11
12 match fn {
13 ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
14 unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
15 }
16}
17
18impl StaticType for MotionEvent {
19 fn static_type() -> glib::Type {
20 unsafe { from_glib(ffi::gdk_motion_event_get_type()) }
21 }
22}
23
24impl MotionEvent {}