pub struct ListSpec {Show 13 fields
pub node: u32,
pub id: String,
pub keys: Arc<Vec<String>>,
pub range: VisibleRange,
pub offsets: Arc<Vec<f32>>,
pub content_height: f32,
pub windowed: bool,
pub horizontal: bool,
pub gap: f32,
pub data_index: Option<Arc<Vec<Option<usize>>>>,
pub headers: Arc<Vec<usize>>,
pub sticky: bool,
pub static_count: usize,
}Expand description
A windowed list’s state for one build.
Fields§
§node: u32§id: StringThe scroll key (the List’s or the Table’s id).
keys: Arc<Vec<String>>§range: VisibleRange§offsets: Arc<Vec<f32>>§content_height: f32The content extent on the list’s axis (height, or width when
horizontal).
windowed: bool§horizontal: boolRound 2: a horizontal List windows on x.
gap: f32The gap the offsets use (a divided list adds the hairline).
data_index: Option<Arc<Vec<Option<usize>>>>The DATA index of each row position (scrollToIndex takes data
indices): None = position i is item i (minus static children).
headers: Arc<Vec<usize>>Row positions of the section headers (ascending).
sticky: boolstickyHeaders: the header pinned at the scroll offset.
static_count: usizeStatic children before the template items (List).
Trait Implementations§
impl StructuralPartialEq for ListSpec
Auto Trait Implementations§
impl Freeze for ListSpec
impl RefUnwindSafe for ListSpec
impl Send for ListSpec
impl Sync for ListSpec
impl Unpin for ListSpec
impl UnsafeUnpin for ListSpec
impl UnwindSafe for ListSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more