Enum Event

pub enum Event {
Show 31 variants Unknown(UnknownEventData), WorkspaceChanged(WorkspaceEventData), WorkspaceDeleted(WorkspaceEventData), WorkspaceAdded(WorkspaceEventData), WorkspaceMoved(WorkspaceMovedEventData), WorkspaceRenamed(NonSpecialWorkspaceEventData), ActiveWindowChanged(Option<WindowEventData>), ActiveMonitorChanged(MonitorEventData), FullscreenStateChanged(bool), MonitorAdded(MonitorAddedEventData), MonitorRemoved(String), WindowOpened(WindowOpenEvent), WindowClosed(Address), WindowMoved(WindowMoveEvent), SpecialRemoved(String), ChangedSpecial(ChangedSpecialEventData), LayoutChanged(LayoutEvent), SubMapChanged(String), LayerOpened(String), LayerClosed(String), FloatStateChanged(WindowFloatEventData), UrgentStateChanged(Address), WindowTitleChanged(WindowTitleEventData), Screencast(ScreencastEventData), ConfigReloaded, IgnoreGroupLockStateChanged(bool), LockGroupsStateChanged(bool), WindowPinned(WindowPinEventData), GroupToggled(GroupToggledEventData), WindowMovedIntoGroup(Address), WindowMovedOutOfGroup(Address), // some variants omitted
}
Expand description

This enum holds every event type

Variants§

§

Unknown(UnknownEventData)

An unknown event

§

WorkspaceChanged(WorkspaceEventData)

An event that emits when the current workspace is changed, it is the equivelant of the workspacev2 event

§

WorkspaceDeleted(WorkspaceEventData)

An event that emits when a workspace is deleted, it is the equivelant of the destroyworkspacev2 event

§

WorkspaceAdded(WorkspaceEventData)

An event that emits when a workspace is created, it is the equivelant of the createworkspacev2 event

§

WorkspaceMoved(WorkspaceMovedEventData)

An event that emits when a workspace is moved to another monitor, it is the equivelant of the moveworkspacev2 event

§

WorkspaceRenamed(NonSpecialWorkspaceEventData)

An event that emits when a workspace is renamed, it is the equivelant of the renameworkspace event

§

ActiveWindowChanged(Option<WindowEventData>)

An event that emits when the active window is changed Unlike the other events, this is a combination of 2 events Those being activewindow and activewindowv2, it waits for both, and then sends one unified event :)

§

ActiveMonitorChanged(MonitorEventData)

An event that emits when the active monitor is changed, it is the equivelant of the focusedmon event

§

FullscreenStateChanged(bool)

An event that emits when the current fullscreen state is changed, it is the equivelant of the fullscreen event

§

MonitorAdded(MonitorAddedEventData)

An event that emits when a new monitor is added/connected, it is the equivelant of the monitoraddedv2 event

§

MonitorRemoved(String)

An event that emits when a monitor is removed/disconnected, it is the equivelant of the monitorremoved event

§

WindowOpened(WindowOpenEvent)

An event that emits when a window is opened, it is the equivelant of the openwindow event

§

WindowClosed(Address)

An event that emits when a window is closed, it is the equivelant of the closewindow event

§

WindowMoved(WindowMoveEvent)

An event that emits when a window is moved to a different workspace, it is the equivelant of the movewindowv2 event

§

SpecialRemoved(String)

An event that emits when a special workspace is closed on the current monitor, it is the equivelant of the activespecial event

§

ChangedSpecial(ChangedSpecialEventData)

An event that emits when the current special workspace is changed on a monitor, it is the equivelant of the activespecial event

§

LayoutChanged(LayoutEvent)

An event that emits when the layout of a keyboard changes, it is the equivelant of the activelayout event

§

SubMapChanged(String)

An event that emits when the current keybind submap changes, it is the equivelant of the submap event

§

LayerOpened(String)

An event that emits when a layer shell surface is opened/mapped, it is the equivelant of the openlayer event

§

LayerClosed(String)

An event that emits when a layer shell surface is closed/unmapped, it is the equivelant of the closelayer event

§

FloatStateChanged(WindowFloatEventData)

An event that emits when the floating state of a window changes, it is the equivelant of the changefloatingmode event

§

UrgentStateChanged(Address)

An event that emits when the a window requests the urgent state, it is the equivelant of the urgent event

§

WindowTitleChanged(WindowTitleEventData)

An event that emits when the title of a window changes, it is the equivelant of the windowtitlev2 event

§

Screencast(ScreencastEventData)

An event that emits when the screencopy state of a client changes AKA, a process wants to capture/record your screen, it is the equivelant of the screencast event

§

ConfigReloaded

An event that emits when hyprland is reloaded, it is the equivelant of the configreloaded event

§

IgnoreGroupLockStateChanged(bool)

An event that emits when ignoregrouplock is toggled, it is the equivelant of the ignoregrouplock event

§

LockGroupsStateChanged(bool)

An event that emits when lockgroups is toggled, it is the equivelant of the lockgroups event

§

WindowPinned(WindowPinEventData)

An event that emits when a window is pinned or unpinned, it is the equivelant of the pin event

§

GroupToggled(GroupToggledEventData)

And event that emits when a group is toggled, it is the equivelant of the togglegroup

§

WindowMovedIntoGroup(Address)

And event that emits when a window is moved into a group, it is the equivelant of the moveintogroup

§

WindowMovedOutOfGroup(Address)

And event that emits when a window is moved out of a group, it is the equivelant of the moveoutofgroup

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.