Enum ambient_ui::scroll_area::ScrollAreaSizing
source · pub enum ScrollAreaSizing {
FitChildrenWidth,
FitParentWidth,
}
Expand description
Sizing config of a scroll area
Variants§
FitChildrenWidth
Resizes the scroll area to fit the width of its children
FitParentWidth
Assumes the width from the parent and propagates it to the children
Trait Implementations§
source§impl Clone for ScrollAreaSizing
impl Clone for ScrollAreaSizing
source§fn clone(&self) -> ScrollAreaSizing
fn clone(&self) -> ScrollAreaSizing
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ScrollAreaSizing
impl Send for ScrollAreaSizing
impl Sync for ScrollAreaSizing
impl Unpin for ScrollAreaSizing
impl UnwindSafe for ScrollAreaSizing
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> 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.