Struct nannou::ui::prelude::widget::list::Item [−][src]
pub struct Item<D, S> { pub i: usize, pub widget_id: NodeIndex<u32>, pub last_id: Option<NodeIndex<u32>>, // some fields omitted }
The data necessary for instantiating a single item within a List
.
Fields
i: usize
The index of the item within the list.
widget_id: NodeIndex<u32>
The id generated for the widget.
last_id: Option<NodeIndex<u32>>
The id used for the previous item's widget.
Methods
impl<D, S> Item<D, S> where
D: Direction,
S: ItemSize,
[src]
impl<D, S> Item<D, S> where
D: Direction,
S: ItemSize,
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,
Sets the given widget as the widget to use for the item.
Sets the:
- position of the widget.
- dimensions of the widget.
- parent of the widget.
- and finally sets the widget within the
Ui
.
impl<S> Item<Down, S>
[src]
impl<S> Item<Down, S>
impl Item<Down, Fixed>
[src]
impl Item<Down, Fixed>
impl<S> Item<Up, S>
[src]
impl<S> Item<Up, S>
impl Item<Up, Fixed>
[src]
impl Item<Up, Fixed>
impl<S> Item<Right, S>
[src]
impl<S> Item<Right, S>
impl Item<Right, Fixed>
[src]
impl Item<Right, Fixed>
impl<S> Item<Left, S>
[src]
impl<S> Item<Left, S>
impl Item<Left, Fixed>
[src]
impl Item<Left, Fixed>
Trait Implementations
impl<D, S> Clone for Item<D, S> where
D: Clone,
S: Clone,
[src]
impl<D, S> Clone for Item<D, S> where
D: Clone,
S: Clone,
fn clone(&self) -> Item<D, S>
[src]
fn clone(&self) -> Item<D, S>
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<D, S> Debug for Item<D, S> where
D: Debug,
S: Debug,
[src]
impl<D, S> Debug for Item<D, S> where
D: Debug,
S: Debug,
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<D, S> Copy for Item<D, S> where
D: Copy,
S: Copy,
[src]
impl<D, S> Copy for Item<D, S> where
D: Copy,
S: Copy,