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

The index of the item within the list.

The id generated for the widget.

The id used for the previous item's widget.

Methods

impl<D, S> Item<D, S> where
    D: Direction,
    S: ItemSize
[src]

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]

The width of the Item.

impl Item<Down, Fixed>
[src]

The height of the Item.

impl<S> Item<Up, S>
[src]

The width of the Item.

impl Item<Up, Fixed>
[src]

The height of the Item.

impl<S> Item<Right, S>
[src]

The height of the Item.

impl Item<Right, Fixed>
[src]

The width of the Item.

impl<S> Item<Left, S>
[src]

The height of the Item.

impl Item<Left, Fixed>
[src]

The width of the Item.

Trait Implementations

impl<D, S> Clone for Item<D, S> where
    D: Clone,
    S: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D, S> Debug for Item<D, S> where
    D: Debug,
    S: Debug
[src]

Formats the value using the given formatter. Read more

impl<D, S> Copy for Item<D, S> where
    D: Copy,
    S: Copy
[src]

Auto Trait Implementations

impl<D, S> Send for Item<D, S> where
    D: Send,
    S: Send

impl<D, S> Sync for Item<D, S> where
    D: Sync,
    S: Sync