Struct nannou::ui::widget::CommonState [−][src]
pub struct CommonState { pub rect: Rect, pub depth: f32, pub maybe_floating: Option<Floating>, pub kid_area: KidArea, pub maybe_x_scroll_state: Option<State<X>>, pub maybe_y_scroll_state: Option<State<Y>>, }
A wrapper around state that is common to all Widget types.
Fields
rect: Rect
The rectangle describing the Widget
's area.
depth: f32
The rendering depth for the Widget (the default is 0.0).
maybe_floating: Option<Floating>
Floating state for the widget if it is floating.
kid_area: KidArea
The area of the widget upon which kid widgets are placed.
maybe_x_scroll_state: Option<State<X>>
If the widget is scrollable across the x axis.
maybe_y_scroll_state: Option<State<Y>>
If the widget is scrollable across the y axis.
Trait Implementations
impl Clone for CommonState
[src]
impl Clone for CommonState
fn clone(&self) -> CommonState
[src]
fn clone(&self) -> CommonState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for CommonState
[src]
impl Debug for CommonState
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for CommonState
[src]
impl Copy for CommonState
impl PartialEq<CommonState> for CommonState
[src]
impl PartialEq<CommonState> for CommonState
fn eq(&self, other: &CommonState) -> bool
[src]
fn eq(&self, other: &CommonState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CommonState) -> bool
[src]
fn ne(&self, other: &CommonState) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for CommonState
impl Send for CommonState
impl Sync for CommonState
impl Sync for CommonState