Struct conrod::CanvasStyle [] [src]

pub struct CanvasStyle {
    pub framed_rectangle: FramedRectangleStyle,
    pub text: TextStyle,
    pub padding: PaddingBuilder,
    pub margin: MarginBuilder,
}

Describes the style of a Canvas.

Fields

framed_rectangle: FramedRectangleStyle

Styling for the Canvas' rectangle.

text: TextStyle

The label and styling for the Canvas' title bar if it has one.

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 Canvas' 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_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 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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Copy for Style
[src]