pub struct ScrollPage { /* private fields */ }Expand description
A window-sized root holding a LayoutScrollArea whose viewport is recomputed on resize, so content
scrolls against the current window dimensions.
The shape any app whose whole window is one scrolling column needs, and which two of them — the preview runner and the landing page — had written out identically, down to the field names.
Implementations§
Source§impl ScrollPage
impl ScrollPage
pub fn new(content: Box<dyn LayoutItem>) -> Result<Self, LayoutError>
Trait Implementations§
Source§impl Component for ScrollPage
impl Component for ScrollPage
Source§fn on_event(&mut self, event: &Event) -> EventResult
fn on_event(&mut self, event: &Event) -> EventResult
A resize relays the page out; everything else goes to the scroll area.
fn view(&self) -> RenderNode
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Human-readable widget type name for the devtools tree inspector.
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollPage
impl !Send for ScrollPage
impl !Sync for ScrollPage
impl !UnwindSafe for ScrollPage
impl Freeze for ScrollPage
impl Unpin for ScrollPage
impl UnsafeUnpin for ScrollPage
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