Struct nannou::ui::prelude::widget::button::Flat
[−]
[src]
pub struct Flat { pub hover_color: Option<Color>, pub press_color: Option<Color>, }
The Button
simply displays a flat color.
Fields
hover_color: Option<Color>
Allows specifying a color to use when the mouse hovers over the button.
By default, this is color.highlighted()
where color
is the button's regular color.
press_color: Option<Color>
Allows specifying a color to use when the mouse presses the button.
By default, this is color.clicked()
where color
is the button's regular color.
Trait Implementations
impl Copy for Flat
[src]
impl Clone for Flat
[src]
fn clone(&self) -> Flat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Flat> for Flat
[src]
fn eq(&self, __arg_0: &Flat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Flat) -> bool
[src]
This method tests for !=
.
impl Debug for Flat
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.