Struct conrod::WidgetCommonState [] [src]

pub struct WidgetCommonState {
    pub rect: Rect,
    pub depth: Depth,
    pub drag_state: State,
    pub maybe_floating: Option<Floating>,
}

A wrapper around state that is common to all Widget types.

Fields

rect: Rect

The rectangle describing the Widget's area.

depth: Depth

The rendering depth for the Widget (the default is 0.0).

drag_state: State

The current state of the dragged widget, if it is draggable.

maybe_floating: Option<Floating>

Floating state for the widget if it is floating.

Trait Implementations

impl PartialEq for CommonState
[src]

fn eq(&self, __arg_0: &CommonState) -> bool

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

fn ne(&self, __arg_0: &CommonState) -> bool

This method tests for !=.

impl Debug for CommonState
[src]

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

Formats the value using the given formatter.

impl Clone for CommonState
[src]

fn clone(&self) -> CommonState

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 CommonState
[src]