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
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