pub struct PreRenderContext {
pub is_selected: bool,
pub cross_axis_size: u16,
pub scroll_axis: ScrollAxis,
pub index: usize,
}
👎Deprecated since 0.11.0: Use ListView with ListBuilder instead.
Expand description
The context provided during rendering.
It provides a set of information that can be used from PreRender::pre_render
.
Fields§
§is_selected: bool
👎Deprecated since 0.11.0: Use ListView with ListBuilder instead.
Indicates whether the widget is selected.
cross_axis_size: u16
👎Deprecated since 0.11.0: Use ListView with ListBuilder instead.
The cross axis size of the widget.
scroll_axis: ScrollAxis
👎Deprecated since 0.11.0: Use ListView with ListBuilder instead.
The list’s scroll axis:
vertical
(default)horizontal
index: usize
👎Deprecated since 0.11.0: Use ListView with ListBuilder instead.
The index of the widget in the list.
Trait Implementations§
Source§impl Clone for PreRenderContext
impl Clone for PreRenderContext
Source§fn clone(&self) -> PreRenderContext
fn clone(&self) -> PreRenderContext
Returns a copy 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 PreRenderContext
impl RefUnwindSafe for PreRenderContext
impl Send for PreRenderContext
impl Sync for PreRenderContext
impl Unpin for PreRenderContext
impl UnwindSafe for PreRenderContext
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