#[repr(C)]pub struct ListViewState {
pub columns: StringVec,
pub sorted_by: OptionUsize,
pub current_row_count: usize,
pub scroll_offset: PixelValueNoPercent,
pub current_scroll_position: LogicalPosition,
pub current_content_height: LogicalSize,
}Expand description
State of the ListView, but without row data
Fields§
§columns: StringVecCopy of the current column names
sorted_by: OptionUsizeWhich column the rows are currently sorted by
current_row_count: usizeRow count of rows currently loaded in the DOM
scroll_offset: PixelValueNoPercentY-offset currently applied to the rows
current_scroll_position: LogicalPositionCurrent position where the user has scrolled the ListView to
current_content_height: LogicalSizeCurrent height of the row container
Trait Implementations§
Source§impl Clone for ListViewState
impl Clone for ListViewState
Source§fn clone(&self) -> ListViewState
fn clone(&self) -> ListViewState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ListViewState
impl RefUnwindSafe for ListViewState
impl Send for ListViewState
impl Sync for ListViewState
impl Unpin for ListViewState
impl UnwindSafe for ListViewState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more