Struct hookmap::interface::ConditionalHotkey[][src]

pub struct ConditionalHotkey { /* fields omitted */ }
Expand description

A struct for selecting the target of the conditional hook.

Example

use hookmap::*;
let hotkey = Hotkey::new();
let mod_ctrl = hotkey.add_modifiers((&[Button::LCtrl.into()], &[]));
mod_ctrl.remap(Button::H).to(Button::LeftArrow);

Implementations

Create a builder for building ConditionalHotkey. On the builder, call .register(...), .modifier_keys(...)(optional), .event_block(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of ConditionalHotkey.

Trait Implementations

Returns a ButtonEventHandlerEntry for registering a hook to the button. Read more

Returns a ButtonEventHandlerEntry for registering a hook to the every button. Read more

Remap keys. Read more

Returns a MouseWheelHotkeyEntry for registering a hook to the mouse wheel. Read more

Returns a MouseCursorHotKeyEntry for registering a hook to the mouse wheel. Read more

Add a modifier button to the hotkey to be registered. Read more

Blocks the input event when the hook to be registered is enable. Read more

Do not block the input event when the hook to be registered is enable. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.