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
i: usize
The index of the item within the list.
widget_id: Id
The id generated for the widget.
last_id: Option<Id>
The id used for the previous item's widget.
Methods
impl<D, S> Item<D, S> where
D: Direction,
S: ItemSize,
[src]
D: Direction,
S: ItemSize,
fn set<W>(self, widget: W, ui: &mut UiCell) -> W::Event where
W: Widget,
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 Item<Down, Fixed>
[src]
impl<S> Item<Up, S>
[src]
impl Item<Up, Fixed>
[src]
impl<S> Item<Right, S>
[src]
impl Item<Right, Fixed>
[src]
impl<S> Item<Left, S>
[src]
impl Item<Left, Fixed>
[src]
Trait Implementations
impl<D: Copy, S: Copy> Copy for Item<D, S>
[src]
impl<D: Clone, S: Clone> Clone for 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
Performs copy-assignment from source
. Read more