pub struct LegendHoverConfig {
pub enabled: bool,
pub animation: LegendAnimation,
pub easing: AnimationEasing,
pub period: f32,
pub highlight: Option<Color32>,
}Expand description
Settings for the legend hover animation.
Fields§
§enabled: boolPlay an effect while the pointer rests on a legend row.
animation: LegendAnimationWhich effect.
easing: AnimationEasingHow the cycle is shaped.
period: f32Seconds for one full cycle.
highlight: Option<Color32>The second color; crisol_ui_kit::Theme::warning when None.
Trait Implementations§
Source§impl Clone for LegendHoverConfig
impl Clone for LegendHoverConfig
impl Copy for LegendHoverConfig
Source§impl Debug for LegendHoverConfig
impl Debug for LegendHoverConfig
Source§impl Default for LegendHoverConfig
impl Default for LegendHoverConfig
Source§impl<'de> Deserialize<'de> for LegendHoverConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for LegendHoverConfig
Available on crate feature
serde only.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
Source§impl PartialEq for LegendHoverConfig
impl PartialEq for LegendHoverConfig
Source§impl Serialize for LegendHoverConfig
Available on crate feature serde only.
impl Serialize for LegendHoverConfig
Available on crate feature
serde only.impl StructuralPartialEq for LegendHoverConfig
Auto Trait Implementations§
impl Forget for LegendHoverConfig
impl Freeze for LegendHoverConfig
impl Move for LegendHoverConfig
impl RefUnwindSafe for LegendHoverConfig
impl Send for LegendHoverConfig
impl Sync for LegendHoverConfig
impl Unpin for LegendHoverConfig
impl UnsafeUnpin for LegendHoverConfig
impl UnwindSafe for LegendHoverConfig
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