Enum LayerEvent
pub enum LayerEvent {
Activated(u32),
Deactivated(u32),
Toggled(u32),
StickyActivated(u32),
StickyReleased,
StickyTimeout(u8),
Set(ModifierBitset),
SetDefault(u32),
LockInvert(LayerLockTarget),
}Expand description
Events from ModifierKey which affect Context.
Variants§
Activated(u32)
Activates the given layer (1-based; see LayerIndex).
Deactivated(u32)
Deactivates the given layer (1-based; see LayerIndex).
Toggled(u32)
Toggles the given layer (1-based; see LayerIndex).
StickyActivated(u32)
Activates the given layer as sticky (on sticky-mod press).
StickyReleased
Sticky layer modifier released without interruption (sticky committed).
StickyTimeout(u8)
Sticky layer timed out while unused.
The payload is a generation id used to ignore stale timeouts.
Set(ModifierBitset)
Sets the active layers to the given set of layers.
SetDefault(u32)
Changes the default layer.
LockInvert(LayerLockTarget)
Invert lock on the given LayerLockTarget.
See ModifierKey::Lock.
Trait Implementations§
§impl Clone for LayerEvent
impl Clone for LayerEvent
§fn clone(&self) -> LayerEvent
fn clone(&self) -> LayerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayerEvent
§impl Debug for LayerEvent
impl Debug for LayerEvent
impl Eq for LayerEvent
§impl PartialEq for LayerEvent
impl PartialEq for LayerEvent
impl StructuralPartialEq for LayerEvent
Auto Trait Implementations§
impl Freeze for LayerEvent
impl RefUnwindSafe for LayerEvent
impl Send for LayerEvent
impl Sync for LayerEvent
impl Unpin for LayerEvent
impl UnsafeUnpin for LayerEvent
impl UnwindSafe for LayerEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more