[][src]Struct egui::containers::ScrollArea

pub struct ScrollArea { /* fields omitted */ }

Add vertical scrolling to a contained Ui.

Implementations

impl ScrollArea[src]

pub fn auto_sized() -> Self[src]

Will make the area be as high as it is allowed to be (i.e. fill the ui it is in)

pub fn from_max_height(max_height: f32) -> Self[src]

Use f32::INFINITY if you want the scroll area to expand to fit the surrounding Ui

pub fn always_show_scroll(self, always_show_scroll: bool) -> Self[src]

If false (default), the scroll bar will be hidden when not needed/ If true, the scroll bar will always be displayed even if not needed.

impl ScrollArea[src]

pub fn show<R>(self, ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> R[src]

Trait Implementations

impl Clone for ScrollArea[src]

impl Debug for ScrollArea[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.