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

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.

pub fn id_source(self, id_source: impl Hash) -> Self[src]

A source for the unique Id, e.g. .id_source("second_scroll_area") or .id_source(loop_index).

pub fn scroll_offset(self, offset: f32) -> Self[src]

Set the vertical scroll offset position.

See also: Ui::scroll_to_cursor and Response::scroll_to_me

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.