pub struct PlotInteractionHandler {
pub zoom_enabled: bool,
pub pan_enabled: bool,
pub selection_enabled: bool,
pub hover_enabled: bool,
pub click_enabled: bool,
pub brush_enabled: bool,
}Expand description
Plot interaction handler for user interactions
Fields§
§zoom_enabled: boolZoom enabled
pan_enabled: boolPan enabled
selection_enabled: boolSelection enabled
hover_enabled: boolHover tooltips enabled
click_enabled: boolClick callbacks enabled
brush_enabled: boolBrush selection enabled
Implementations§
Source§impl PlotInteractionHandler
impl PlotInteractionHandler
Sourcepub fn with_selection(self, enabled: bool) -> Self
pub fn with_selection(self, enabled: bool) -> Self
Enable/disable selection
Sourcepub fn with_hover(self, enabled: bool) -> Self
pub fn with_hover(self, enabled: bool) -> Self
Enable/disable hover tooltips
Sourcepub fn with_click(self, enabled: bool) -> Self
pub fn with_click(self, enabled: bool) -> Self
Enable/disable click callbacks
Sourcepub fn with_brush(self, enabled: bool) -> Self
pub fn with_brush(self, enabled: bool) -> Self
Enable/disable brush selection
Trait Implementations§
Source§impl Clone for PlotInteractionHandler
impl Clone for PlotInteractionHandler
Source§impl Debug for PlotInteractionHandler
impl Debug for PlotInteractionHandler
Source§impl Default for PlotInteractionHandler
impl Default for PlotInteractionHandler
Source§impl<'de> Deserialize<'de> for PlotInteractionHandler
impl<'de> Deserialize<'de> for PlotInteractionHandler
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlotInteractionHandler
impl RefUnwindSafe for PlotInteractionHandler
impl Send for PlotInteractionHandler
impl Sync for PlotInteractionHandler
impl Unpin for PlotInteractionHandler
impl UnsafeUnpin for PlotInteractionHandler
impl UnwindSafe for PlotInteractionHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more