gdk4/
focus_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, FocusEvent};
6
7define_event! {
8    FocusEvent,
9    crate::ffi::GdkFocusEvent,
10    &[EventType::FocusChange]
11}
12
13impl fmt::Debug for FocusEvent {
14    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15        f.debug_struct("FocusEvent")
16            .field("in", &self.is_in())
17            .finish()
18    }
19}