Struct conrod::widget::list::Item [] [src]

pub struct Item<D, S> {
    pub i: usize,
    pub widget_id: Id,
    pub last_id: Option<Id>,
    // 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: Copy, S: Copy> Copy for Item<D, S>
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.