Struct ambient_api::prelude::ScrollArea
source · pub struct ScrollArea {
pub sizing: ScrollAreaSizing,
pub inner: Element,
}
Expand description
A scroll area that can be used to scroll its child.
Fields§
§sizing: ScrollAreaSizing
The scroll area sizing
inner: Element
The child element
Implementations§
source§impl ScrollArea
impl ScrollArea
sourcepub fn el(sizing: ScrollAreaSizing, inner: Element) -> Element
pub fn el(sizing: ScrollAreaSizing, inner: Element) -> Element
Create an Element
from this component.
Trait Implementations§
source§impl Clone for ScrollArea
impl Clone for ScrollArea
source§fn clone(&self) -> ScrollArea
fn clone(&self) -> ScrollArea
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 moresource§impl Debug for ScrollArea
impl Debug for ScrollArea
source§impl ElementComponent for ScrollArea
impl ElementComponent for ScrollArea
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollArea
impl Send for ScrollArea
impl Sync for ScrollArea
impl Unpin for ScrollArea
impl !UnwindSafe for ScrollArea
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.