[−][src]Trait lock_keys::LockKeyWrapper
A collection of methods that are required for lock key handling.
Required methods
fn new() -> Self
Creates a new lock key object.
fn set(&self, key: LockKeys, state: LockKeyState) -> LockKeyResult
Sets a new state for the lock key.
fn enable(&self, key: LockKeys) -> LockKeyResult
Enables the lock key.
fn disable(&self, key: LockKeys) -> LockKeyResult
Disables the lock key.
fn toggle(&self, key: LockKeys) -> LockKeyResult
Toggles the lock key state returning its previous one.
fn state(&self, key: LockKeys) -> LockKeyResult
Retrieves the lock key state.
Implementors
impl LockKeyWrapper for LockKey
[src]
fn new() -> Self
[src]
Creates a new lock key object using Xlib for handling.
fn set(&self, key: LockKeys, state: LockKeyState) -> LockKeyResult
[src]
Sets a new state for the lock key using Xlib.
fn enable(&self, key: LockKeys) -> LockKeyResult
[src]
Enables the lock key using Xlib.
fn disable(&self, key: LockKeys) -> LockKeyResult
[src]
Disables the lock key using Xlib.
fn toggle(&self, key: LockKeys) -> LockKeyResult
[src]
Toggles the lock key state returning its previous state using Xlib.
fn state(&self, key: LockKeys) -> LockKeyResult
[src]
Retrieves the lock key state using Xlib.