pub struct SplitScroll {
pub scroll_enabled: Vec2b,
pub fixed_size: Vec2,
pub scroll_outer_size: Vec2,
pub scroll_content_size: Vec2,
pub stick_to_bottom: bool,
}Expand description
A scroll area with some portion of its left and/or top side “stuck”.
This produces four quadrants:
<-------LEFT-------> <---------RIGHT---------->
------------------------------------------------
^ | | <-----------------> |
TOP | | Fixed | Horizontally |
V | fixed_size | scrollable |
|--------------------|-------------------------|.................
^ | ^ | ^ | .
BOTTOM | | | Vertically | <- Fully scrollable -> | .
| | | scrollable | scroll_outer_size | .
V | v | v | .
|____________________|_________________________| .
. .
. scroll_content_size .
. .
............................................The above shows the initial layout when the scroll offset is zero (no scrolling has occurred yet).
Fields§
§scroll_enabled: Vec2b§fixed_size: Vec2Width of the fixed left side, and height of the fixed top.
scroll_outer_size: Vec2Size of the small container of the right bottom scrollable region.
scroll_content_size: Vec2Size of the large contents of the right bottom region, ignoring the left/top fixed regions.
stick_to_bottom: boolIf true, the vertical scrollbar will stick to the bottom as the content grows.
Implementations§
Source§impl SplitScroll
impl SplitScroll
pub fn show(self, ui: &mut Ui, delegate: &mut dyn SplitScrollDelegate)
Trait Implementations§
Source§impl Clone for SplitScroll
impl Clone for SplitScroll
Source§fn clone(&self) -> SplitScroll
fn clone(&self) -> SplitScroll
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SplitScroll
Auto Trait Implementations§
impl Freeze for SplitScroll
impl RefUnwindSafe for SplitScroll
impl Send for SplitScroll
impl Sync for SplitScroll
impl Unpin for SplitScroll
impl UnsafeUnpin for SplitScroll
impl UnwindSafe for SplitScroll
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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