pub struct ScrollViewProps<'a> {
pub children: Vec<AnyElement<'a>>,
pub scrollbars: Scrollbars<'static>,
pub state: Option<State<ScrollViewState>>,
pub block: Option<Block<'static>>,
pub active: bool,
pub margin: Margin,
pub offset: Offset,
pub width: Constraint,
pub height: Constraint,
pub gap: i32,
pub flex_direction: Direction,
pub justify_content: Flex,
}Fields§
§children: Vec<AnyElement<'a>>§scrollbars: Scrollbars<'static>§state: Option<State<ScrollViewState>>§block: Option<Block<'static>>§active: bool§margin: Margin§offset: Offset§width: Constraint§height: Constraint§gap: i32§flex_direction: Direction§justify_content: FlexImplementations§
Source§impl<'a> ScrollViewProps<'a>
impl<'a> ScrollViewProps<'a>
Sourcepub fn layout_style(&self) -> LayoutStyle
pub fn layout_style(&self) -> LayoutStyle
Returns the layout style based on the layout-related fields of this struct.
Trait Implementations§
Source§impl Default for ScrollViewProps<'_>
impl Default for ScrollViewProps<'_>
impl<'a> Props for ScrollViewProps<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScrollViewProps<'a>
impl<'a> !Send for ScrollViewProps<'a>
impl<'a> !Sync for ScrollViewProps<'a>
impl<'a> !UnwindSafe for ScrollViewProps<'a>
impl<'a> Freeze for ScrollViewProps<'a>
impl<'a> Unpin for ScrollViewProps<'a>
impl<'a> UnsafeUnpin for ScrollViewProps<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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