Module event_listener
Expand description
This module provides the EventListener struct for listening and acting upon for events
§Event Listener Module
for documentation go to:
- crate::event_listener::EventStream for the event listener implementation based on the [futures_lite::Stream] api
- crate::event_listener::EventListener for the normal Fn based event listener
- crate::event_listener::AsyncEventListener for the Fn based event listener which uses closures that return std::future::Futures
Structs§
- Async
Event Listener - This struct is used for adding event handlers and executing them on events
- Changed
Special Event Data - This struct holds changed special event data
- Event
Listener - This struct is used for adding event handlers and executing them on events
- Event
Stream - Event listener, but [Stream] This is the new prefered way of listening for events as its more idiomatic, and allows for more efficient memory management
- Group
Toggled Event Data - This struct holds the data for the Event::GroupToggled event
- Layout
Event - The data for the event executed when changing keyboard layouts
- Monitor
Added Event Data - This struct holds monitor event data
- Monitor
Event Data - This struct holds monitor event data
- NonSpecial
Workspace Event Data - This struct holds workspace event data when the workspace cannot be special
- Screencast
Event Data - Event data for screencast event
- State
- The mutable state available to Closures
- Unknown
Event Data - This struct represents an unknown event to hyprland-rs this allows you to use events that haven’t been implemented in hyprland-rs. To use this use the UnknownEventData::parse_args method to properly get the args
- Window
Event Data - This struct holds window event data
- Window
Float Event Data - This struct holds window float event data
- Window
Move Event - The data for the event executed when moving a window to a new workspace
- Window
Open Event - The data for the event executed when opening a new window
- Window
PinEvent Data - This struct holds window pin event data
- Window
Title Event Data - This struct holds the event data for the windowtitle changed event
- Workspace
Event Data - This struct holds workspace event data
- Workspace
Moved Event Data - This struct holds workspace moved event data
Enums§
- Event
- This enum holds every event type