Skip to main content

Module layered

Module layered 

Source
Expand description

Layered keys. (Layering functionality).

Structs§

Context
crate::key::Context for LayeredKey that tracks active layers.
LayeredKey
A key whose behavior depends on which layer is active.
ModifierBitset
Struct for modifying layers with a bitset.
ModifierKeyState
crate::key::KeyState of ModifierKey.
PendingKeyState
Struct for layer system pending key state. (No pending state).
System
The key::System implementation for layer system keys.

Enums§

ActivationStyle
Style of activating a layer.
Activity
State of an individual layer: active or inactive.
Behavior
Whether the pressed Sticky modifier key is “sticky” or “regular”.
LayerEvent
Events from ModifierKey which affect Context.
LayersError
Errors when constructing Layers.
ModifierKey
Modifier layer key affects what layers are active.
Ref
Reference for a keyboard key.

Constants§

BITSET_MASK_ALL
The bitset with all representable modifier layers in the mask.
MAX_BITSET_LAYER
The maximum layer bit index representable in a LayerBitset.

Traits§

LayerState
Tracks state of active layers.
Layers
Trait for layers of LayeredKey.

Functions§

layered_keys
Constructs an array of keys for the given array.

Type Aliases§

LayerBitset
The type used for set of active layers in ModifierKey. (Layer bit indices 0..=[MAX_BITSET_LAYER].)
LayerIndex
The type used for layer index.