Struct nannou::ui::prelude::widget::matrix::Style [] [src]

pub struct Style {
    pub cell_pad_w: Option<f64>,
    pub cell_pad_h: Option<f64>,
}

Unique styling for the Matrix.

Fields

The width of the padding for each matrix element's "cell".

The height of the padding for each matrix element's "cell".

Methods

impl Style
[src]

[src]

Retrieves the value, falling back to a default values in the following order:

  1. If the field is None, falls back to the style stored within the Theme.
  2. If there are no style defaults for the widget in the theme, or if the default field is also None, falls back to the expression specified within the field's #[conrod(default = "expr")] attribute.

This method was generated by the #[conrod(default = "expr")] attribute associated with the #[derive(WidgetStyle)] attribute.

[src]

Retrieves the value, falling back to a default values in the following order:

  1. If the field is None, falls back to the style stored within the Theme.
  2. If there are no style defaults for the widget in the theme, or if the default field is also None, falls back to the expression specified within the field's #[conrod(default = "expr")] attribute.

This method was generated by the #[conrod(default = "expr")] attribute associated with the #[derive(WidgetStyle)] attribute.

Trait Implementations

impl Copy for Style
[src]

impl Clone for Style
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Style> for Style
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Style
[src]

[src]

Formats the value using the given formatter.

impl Default for Style
[src]

[src]

Returns the "default value" for a type. Read more