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 UnsafeUnpin 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