pub struct ScrollableContainer { /* private fields */ }Expand description
Scrollable container for managing scrollable content rendering
Implementations§
Source§impl ScrollableContainer
impl ScrollableContainer
pub fn new( viewport: Rect, scroll_state: &ScrollState, config: Option<ScrollableConfig>, ) -> Self
Sourcepub fn content_area(&self) -> Rect
pub fn content_area(&self) -> Rect
Get content area rectangle (excludes scrollbar space)
Sourcepub fn calculate(self, content_height: f64) -> ScrollableResponse
pub fn calculate(self, content_height: f64) -> ScrollableResponse
Calculate scrollable area geometry
pub fn content_y(&self) -> f64
pub fn content_width(&self) -> f64
Auto Trait Implementations§
impl Freeze for ScrollableContainer
impl RefUnwindSafe for ScrollableContainer
impl Send for ScrollableContainer
impl Sync for ScrollableContainer
impl Unpin for ScrollableContainer
impl UnsafeUnpin for ScrollableContainer
impl UnwindSafe for ScrollableContainer
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