Struct lazybar_core::Actions
source · pub struct Actions {
pub left: String,
pub right: String,
pub middle: String,
pub up: String,
pub down: String,
}
Expand description
A map from mouse buttons to panel events
Fields§
§left: String
The event that should be run when the panel is left-clicked
right: String
The event that should be run when the panel is right-clicked
middle: String
The event that should be run when the panel is middle-clicked
up: String
The event that should be run when the panel is scrolled up
down: String
The event that should be run when the panel is scrolled down
Implementations§
source§impl Actions
impl Actions
sourcepub fn parse<S: BuildHasher>(
table: &mut HashMap<String, Value, S>,
) -> Result<Self>
pub fn parse<S: BuildHasher>( table: &mut HashMap<String, Value, S>, ) -> Result<Self>
Attempts to parse an instance of this type from a subset of tthe global
Config
.
Configuration options:
click_left
: The name of the event to run when the panel is left-clicked.click_right
: The name of the event to run when the panel is right-clicked.click_middle
: The name of the event to run when the panel is middle-clicked.scroll_up
: The name of the event to run when the panel is scrolled up.scroll_down
: The name of the event to run when the panel is scrolled down.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Actions
impl RefUnwindSafe for Actions
impl Send for Actions
impl Sync for Actions
impl Unpin for Actions
impl UnwindSafe for Actions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)