pub struct PushButtonAppearanceGenerator {
pub caption: String,
pub font: String,
pub font_size: f64,
pub text_color: Color,
pub background_color: Color,
pub border_color: Color,
pub border_width: f64,
pub size: [f64; 2],
pub border_style: ButtonBorderStyle,
}Expand description
Push button appearance generator
Fields§
§caption: StringButton caption
font: StringFont to use
font_size: f64Font size
text_color: ColorText color
background_color: ColorBackground color
border_color: ColorBorder color
border_width: f64Border width
size: [f64; 2]Button rectangle [width, height]
border_style: ButtonBorderStyleBorder style
Implementations§
Source§impl PushButtonAppearanceGenerator
impl PushButtonAppearanceGenerator
Sourcepub fn generate_normal(&self) -> Result<Stream>
pub fn generate_normal(&self) -> Result<Stream>
Generate normal appearance
Sourcepub fn generate_rollover(&self) -> Result<Stream>
pub fn generate_rollover(&self) -> Result<Stream>
Generate rollover appearance
Sourcepub fn generate_down(&self) -> Result<Stream>
pub fn generate_down(&self) -> Result<Stream>
Generate down (pressed) appearance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushButtonAppearanceGenerator
impl RefUnwindSafe for PushButtonAppearanceGenerator
impl Send for PushButtonAppearanceGenerator
impl Sync for PushButtonAppearanceGenerator
impl Unpin for PushButtonAppearanceGenerator
impl UnwindSafe for PushButtonAppearanceGenerator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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