Struct egui::containers::scroll_area::Prepared

source ·
struct Prepared {
Show 13 fields id: Id, state: State, auto_shrink: Vec2b, scroll_enabled: Vec2b, show_bars_factor: Vec2, current_bar_use: Vec2, scroll_bar_visibility: ScrollBarVisibility, inner_rect: Rect, content_ui: Ui, viewport: Rect, scrolling_enabled: bool, stick_to_end: Vec2b, animated: bool,
}

Fields§

§id: Id§state: State§auto_shrink: Vec2b§scroll_enabled: Vec2b

Does this ScrollArea have horizontal/vertical scrolling enabled?

§show_bars_factor: Vec2

Smoothly interpolated boolean of whether or not to show the scroll bars.

§current_bar_use: Vec2

How much horizontal and vertical space are used up by the width of the vertical bar, and the height of the horizontal bar?

This is always zero for floating scroll bars.

Note that this is a yx swizzling of Self::show_bars_factor times the maximum bar with. That’s because horizontal scroll uses up vertical space, and vice versa.

§scroll_bar_visibility: ScrollBarVisibility§inner_rect: Rect

Where on the screen the content is (excludes scroll bars).

§content_ui: Ui§viewport: Rect

Relative coordinates: the offset and size of the view of the inner UI. viewport.min == ZERO means we scrolled to the top.

§scrolling_enabled: bool§stick_to_end: Vec2b§animated: bool

Implementations§

source§

impl Prepared

source

fn end(self, ui: &mut Ui) -> (Vec2, State)

Returns content size and state

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.