Trait sixtyfps_corelib::model::RepeatedComponent [−][src]
pub trait RepeatedComponent: Component { type Data: 'static; fn update(&self, index: usize, data: Self::Data); fn listview_layout(
self: Pin<&Self>,
_offset_y: &mut f32,
_viewport_width: Pin<&Property<f32>>
) { ... } fn box_layout_data<'a>(self: Pin<&'a Self>) -> BoxLayoutCellData<'a> { ... } }
Component that can be instantiated by a repeater.
Associated Types
Loading content...Required methods
fn update(&self, index: usize, data: Self::Data)
[src]
Update this component at the given index and the given data
Provided methods
fn listview_layout(
self: Pin<&Self>,
_offset_y: &mut f32,
_viewport_width: Pin<&Property<f32>>
)
[src]
self: Pin<&Self>,
_offset_y: &mut f32,
_viewport_width: Pin<&Property<f32>>
)
Layout this item in the listview
offset_y is the y
position where this item should be placed.
it should be updated to be to the y position of the next item.
fn box_layout_data<'a>(self: Pin<&'a Self>) -> BoxLayoutCellData<'a>
[src]
Returns what’s needed to perform the layout if this component is in a box layout