[go: up one dir, main page]

gdk4 0.10.3

Rust bindings of the GDK 4 library
Documentation
// Take a look at the license at the top of the repository in the LICENSE file.

use std::fmt;

use crate::{EventType, FocusEvent};

define_event! {
    FocusEvent,
    crate::ffi::GdkFocusEvent,
    &[EventType::FocusChange]
}

impl fmt::Debug for FocusEvent {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.debug_struct("FocusEvent")
            .field("in", &self.is_in())
            .finish()
    }
}