pub fn event_category(&self) -> EventCategory {
        match self {
            // Mouse
            Self::Hover => EventCategory::Mouse,
            Self::Click => EventCategory::Mouse,
            Self::MouseDown => EventCategory::Mouse,
            Self::MouseUp => EventCategory::Mouse,
            Self::MouseIn => EventCategory::Mouse,
            Self::MouseOut => EventCategory::Mouse,
            // Keyboard
            Self::CharInput { .. } => EventCategory::Keyboard,
            Self::KeyboardInput { .. } => EventCategory::Keyboard,
            // Focus
            Self::Focus => EventCategory::Focus,
            Self::Blur => EventCategory::Focus,
        }
    }
/// Get the category of this event
Get the category of this event
Get the category of this event
pub fn event_category(&self) -> EventCategory {
        match self {
            // Mouse
            Self::Hover => EventCategory::Mouse,
            Self::Click => EventCategory::Mouse,
            Self::MouseDown => EventCategory::Mouse,
            Self::MouseUp => EventCategory::Mouse,
            Self::MouseIn => EventCategory::Mouse,
            Self::MouseOut => EventCategory::Mouse,
            // Keyboard
            Self::CharInput { .. } => EventCategory::Keyboard,
            Self::KeyboardInput { .. } => EventCategory::Keyboard,
            // Focus
            Self::Focus => EventCategory::Focus,
            Self::Blur => EventCategory::Focus,
        }
    }
pub fn event_category ( & self ) -> EventCategory { match self { // Mouse Self :: Hover => EventCategory :: Mouse , Self :: Click => EventCategory :: Mouse , Self :: MouseDown => EventCategory :: Mouse , Self :: MouseUp => EventCategory :: Mouse , Self :: MouseIn => EventCategory :: Mouse , Self :: MouseOut => EventCategory :: Mouse , // Keyboard Self :: CharInput { .. } => EventCategory :: Keyboard , Self :: KeyboardInput { .. } => EventCategory :: Keyboard , // Focus Self :: Focus => EventCategory :: Focus , Self :: Blur => EventCategory :: Focus , } }
Get the category of this event
Get the category of this event
&self
&self