Struct conrod::CanvasStyle
[−]
[src]
pub struct CanvasStyle { pub maybe_color: Option<Color>, pub maybe_frame: Option<f64>, pub maybe_frame_color: Option<Color>, pub maybe_title_bar_font_size: Option<FontSize>, pub maybe_title_bar_label_align: Option<Horizontal>, pub maybe_title_bar_label_color: Option<Color>, pub padding: PaddingBuilder, pub margin: MarginBuilder, }
Describes the style of a Canvas Floating.
Fields
maybe_color: Option<Color>
Color of the canvas
maybe_frame: Option<f64>
The width of the frame surrounding the canvas.
maybe_frame_color: Option<Color>
The color of the canvas' frame.
maybe_title_bar_font_size: Option<FontSize>
The font size of the canvas' title bar label.
maybe_title_bar_label_align: Option<Horizontal>
The alignment of the canvas' title bar label.
maybe_title_bar_label_color: Option<Color>
The color of the title bar's label.
padding: PaddingBuilder
Padding of the kid area.
margin: MarginBuilder
Margin for the kid area.
Methods
impl Style
[src]
fn new() -> Style
Construct a default Canvas Style.
fn color(&self, theme: &Theme) -> Color
Get the color for the Floating's Element.
fn frame(&self, theme: &Theme) -> f64
Get the frame for an Element.
fn frame_color(&self, theme: &Theme) -> Color
Get the frame Color for an Element.
fn title_bar_font_size(&self, theme: &Theme) -> FontSize
Get the font size of the title bar.
fn title_bar_label_align(&self, theme: &Theme) -> Horizontal
Get the alignment of the title bar label.
fn title_bar_label_color(&self, theme: &Theme) -> Color
Get the color of the title bar label.
fn padding(&self, theme: &Theme) -> Padding
Get the Padding for the Canvas' kid area.
fn margin(&self, theme: &Theme) -> Margin
Get the Margin for the Canvas' kid area.
Trait Implementations
impl Encodable for Style
[src]
impl Decodable for Style
[src]
impl PartialEq for Style
[src]
fn eq(&self, __arg_0: &Style) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Style) -> bool
This method tests for !=
.
impl Debug 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