Struct nannou::ui::prelude::widget::collapsible_area::Area [−][src]
pub struct Area { pub id: NodeIndex<u32>, pub collapsible_area_id: NodeIndex<u32>, pub width: f64, }
The area returned by the widget when the CollapsibleArea
is open.
Fields
id: NodeIndex<u32>
A unique identifier for the user's widget.
collapsible_area_id: NodeIndex<u32>
The widget::Id for the collapsible area that produced this Area
.
width: f64
The width of the CollapsibleArea
that produced this Area
.
Methods
impl Area
[src]
impl Area
pub fn set<W>(self, widget: W, ui: &mut UiCell) -> <W as Widget>::Event where
W: Widget,
[src]
pub fn set<W>(self, widget: W, ui: &mut UiCell) -> <W as Widget>::Event where
W: Widget,
Set the user's given widget directly under the CollapsibleArea
.
Returns any events produced by the given widget.
Trait Implementations
impl Clone for Area
[src]
impl Clone for Area
fn clone(&self) -> Area
[src]
fn clone(&self) -> Area
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 Area
[src]
impl Debug for Area
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 Area
[src]
impl Copy for Area
impl PartialEq<Area> for Area
[src]
impl PartialEq<Area> for Area