gdk4/auto/proximity_event.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::ffi;
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9 /// An event related to the proximity of a tool to a device.
10 #[doc(alias = "GdkProximityEvent")]
11 pub struct ProximityEvent(Shared<ffi::GdkProximityEvent>);
12
13 match fn {
14 ref => |ptr| ffi::gdk_event_ref(ptr as *mut ffi::GdkEvent),
15 unref => |ptr| ffi::gdk_event_unref(ptr as *mut ffi::GdkEvent),
16 }
17}
18
19impl StaticType for ProximityEvent {
20 fn static_type() -> glib::Type {
21 unsafe { from_glib(ffi::gdk_proximity_event_get_type()) }
22 }
23}
24
25impl ProximityEvent {}