pub struct FrameVisuals {
pub bg_on_hover: Color32,
pub bg_on_click: Color32,
pub border_on_hover: (f32, Color32),
pub border_on_click: (f32, Color32),
}Expand description
Hover / click overrides used by crate::utils::frame.
Fields§
§bg_on_hover: Color32Fill while hovered.
bg_on_click: Color32Fill while the pointer is down.
border_on_hover: (f32, Color32)(width, color) border while hovered.
border_on_click: (f32, Color32)(width, color) border while the pointer is down.
Trait Implementations§
Source§impl Clone for FrameVisuals
impl Clone for FrameVisuals
Source§fn clone(&self) -> FrameVisuals
fn clone(&self) -> FrameVisuals
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameVisuals
Source§impl Debug for FrameVisuals
impl Debug for FrameVisuals
Source§impl Default for FrameVisuals
impl Default for FrameVisuals
Source§fn default() -> FrameVisuals
fn default() -> FrameVisuals
Returns the “default value” for a type. Read more
impl Eq for FrameVisuals
Auto Trait Implementations§
impl Freeze for FrameVisuals
impl RefUnwindSafe for FrameVisuals
impl Send for FrameVisuals
impl Sync for FrameVisuals
impl Unpin for FrameVisuals
impl UnsafeUnpin for FrameVisuals
impl UnwindSafe for FrameVisuals
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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