Struct conrod::CommonStyle [] [src]

pub struct CommonStyle {
    pub maybe_x_dimension: Option<Dimension>,
    pub maybe_y_dimension: Option<Dimension>,
    pub maybe_x_position: Option<Position>,
    pub maybe_y_position: Option<Position>,
    pub maybe_depth: Option<Depth>,
}

Styling and positioning data that is common between all widget types.

Fields

maybe_x_dimension: Option<Dimension>

The width of a Widget.

maybe_y_dimension: Option<Dimension>

The height of a Widget.

maybe_x_position: Option<Position>

The position of a Widget along the x axis.

maybe_y_position: Option<Position>

The position of a Widget along the y axis.

maybe_depth: Option<Depth>

The rendering Depth of the Widget.

Methods

impl CommonStyle
[src]

fn new() -> Self

A new default CommonStyle.

Trait Implementations

impl Debug for CommonStyle
[src]

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

Formats the value using the given formatter.

impl Copy for CommonStyle
[src]

impl Clone for CommonStyle
[src]

fn clone(&self) -> CommonStyle

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