Enum conrod::widget::primitive::shape::Style [−][src]
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]
impl Style
pub fn fill() -> Self
[src]
pub fn fill() -> Self
A default Fill
style.
pub fn fill_with(color: Color) -> Self
[src]
pub fn fill_with(color: Color) -> Self
A Fill
style with some given Color
.
pub fn outline() -> Self
[src]
pub fn outline() -> Self
A default Outline
style.
pub fn outline_styled(line_style: Style) -> Self
[src]
pub fn outline_styled(line_style: Style) -> Self
A default Outline
style.
pub fn color(self, color: Color) -> Self
[src]
pub fn color(self, color: Color) -> Self
The style with some given Color.
pub fn set_color(&mut self, color: Color)
[src]
pub fn set_color(&mut self, color: Color)
Set the color for the style.
pub fn get_color(&self, theme: &Theme) -> Color
[src]
pub fn get_color(&self, theme: &Theme) -> Color
Get the color of the Rectangle.
Trait Implementations
impl Copy for Style
[src]
impl Copy for Style
impl Clone for Style
[src]
impl Clone for Style
fn clone(&self) -> Style
[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Style
[src]
impl Debug for Style
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Style
[src]
impl PartialEq for Style