Enum conrod::widget::primitive::shape::Style
[−]
[src]
pub enum Style { Outline(Style), Fill(Option<Color>), }
The style for some 2D shape.
Variants
Outline(Style)
The outline of the shape with this style.
Fill(Option<Color>)
A rectangle filled with this color.
Methods
impl Style
[src]
fn fill() -> Self
A default Fill
style.
fn fill_with(color: Color) -> Self
A Fill
style with some given Color
.
fn outline() -> Self
A default Outline
style.
fn outline_styled(line_style: Style) -> Self
A default Outline
style.
fn color(self, color: Color) -> Self
The style with some given Color.
fn set_color(&mut self, color: Color)
Set the color for the style.
fn get_color(&self, theme: &Theme) -> Color
Get the color of the Rectangle.
Trait Implementations
impl Copy for Style
[src]
impl Clone for Style
[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more