Struct egui::containers::scroll_area::Prepared
source · struct Prepared {}
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§
Auto Trait Implementations§
impl Freeze for Prepared
impl !RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl !UnwindSafe for Prepared
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