pub struct CaptionStyle {
pub style: Style,
pub hover: Option<Style>,
pub highlight: Option<Style>,
pub hotkey: Option<Style>,
pub focus: Option<Style>,
pub align: Option<Alignment>,
pub hotkey_align: Option<HotkeyAlignment>,
pub hotkey_policy: Option<HotkeyPolicy>,
pub spacing: Option<u16>,
pub non_exhaustive: NonExhaustive,
}Expand description
Composite style for the caption.
Fields§
§style: StyleBase style
hover: Option<Style>Hover style
highlight: Option<Style>Highlight style
hotkey: Option<Style>Hotkey style
focus: Option<Style>Focus style
align: Option<Alignment>Label alignment
hotkey_align: Option<HotkeyAlignment>Hotkey alignment
hotkey_policy: Option<HotkeyPolicy>Hotkey policy
spacing: Option<u16>Label/hotkey spacing
non_exhaustive: NonExhaustiveTrait Implementations§
Source§impl Clone for CaptionStyle
impl Clone for CaptionStyle
Source§fn clone(&self) -> CaptionStyle
fn clone(&self) -> CaptionStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptionStyle
impl Debug for CaptionStyle
Auto Trait Implementations§
impl Freeze for CaptionStyle
impl RefUnwindSafe for CaptionStyle
impl Send for CaptionStyle
impl Sync for CaptionStyle
impl Unpin for CaptionStyle
impl UnwindSafe for CaptionStyle
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<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