gdk4/crossing_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::{CrossingEvent, EventType};
6
7define_event! {
8 CrossingEvent,
9 crate::ffi::GdkCrossingEvent,
10 &[EventType::EnterNotify, EventType::LeaveNotify]
11}
12
13impl fmt::Debug for CrossingEvent {
14 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15 f.debug_struct("PadEvent")
16 .field("detail", &self.detail())
17 .field("focus", &self.gets_focus())
18 .field("mode", &self.mode())
19 .finish()
20 }
21}