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]
pub fn fill() -> Self[src]
A default Fill style.
pub fn fill_with(color: Color) -> Self[src]
A Fill style with some given Color.
pub fn outline() -> Self[src]
A default Outline style.
pub fn outline_styled(line_style: Style) -> Self[src]
A default Outline style.
pub fn color(self, color: Color) -> Self[src]
The style with some given Color.
pub fn set_color(&mut self, color: Color)[src]
Set the color for the style.
pub fn get_color(&self, theme: &Theme) -> Color[src]
Get the color of the Rectangle.
Trait Implementations
impl Copy for Style[src]
impl Clone for Style[src]
fn clone(&self) -> Style[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 Debug for Style[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more