gdk4/grab_broken_event.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use std::fmt;
4
5use crate::{EventType, GrabBrokenEvent};
6
7define_event! {
8 GrabBrokenEvent,
9 crate::ffi::GdkGrabBrokenEvent,
10 &[EventType::GrabBroken]
11}
12
13impl fmt::Debug for GrabBrokenEvent {
14 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15 f.debug_struct("GrabBrokenEvent")
16 .field("grab_surface", &self.grab_surface())
17 .field("implicit", &self.is_implicit())
18 .finish()
19 }
20}