pub struct Actions {
pub left: Option<String>,
pub right: Option<String>,
pub middle: Option<String>,
pub up: Option<String>,
pub down: Option<String>,
}
Expand description
A map from mouse buttons to panel events
Fields§
§left: Option<String>
The event that should be run when the panel is left-clicked
right: Option<String>
The event that should be run when the panel is right-clicked
middle: Option<String>
The event that should be run when the panel is middle-clicked
up: Option<String>
The event that should be run when the panel is scrolled up
down: Option<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§
Source§impl Ord for Actions
impl Ord for Actions
Source§impl PartialOrd for Actions
impl PartialOrd for Actions
impl Eq for Actions
impl StructuralPartialEq for Actions
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.