[][src]Crate lock_keys

lock_keys provides a cross platform way for lock keys handling.

Supported platforms: Linux (Xlib static) and Windows (winuser API).

Example

The example below shows how to turn on the Number Lock key:

extern crate lock_keys;

use lock_keys::*;

fn main() {
    let lockkey = LockKey::new();
    lockkey.enable(LockKeys::NumberLock).unwrap();
}

Structs

LockKey

The lock ley object to hold the OS specific handle when it is required.

Enums

LockKeyState
LockKeys

The available lock keys for handling, i.e. Capital Lock, Number Lock and Scrolling Lock.

Traits

LockKeyWrapper

A collection of methods that are required for lock key handling.

Type Definitions

LockKeyResult

A specialized Result type lock key handling.