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

pub struct Item {
    pub i: usize,
    pub widget_id: Id,
    pub last_id: Option<Id>,
    pub w: Scalar,
    pub h: Scalar,
    // 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.

The width of the item.

The height of the item.

Methods

impl Item
[src]

[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.

Trait Implementations

impl Copy for Item
[src]

impl Clone for Item
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Item
[src]

[src]

Formats the value using the given formatter. Read more