struct Prepared {Show 16 fields
id: Id,
state: State,
auto_shrink: Vec2b,
direction_enabled: Vec2b,
show_bars_factor: Vec2,
current_bar_use: Vec2,
scroll_bar_visibility: ScrollBarVisibility,
scroll_bar_rect: Option<Rect>,
inner_rect: Rect,
content_ui: Ui,
viewport: Rect,
scroll_source: ScrollSource,
wheel_scroll_multiplier: Vec2,
stick_to_end: Vec2b,
saved_scroll_target: [Option<ScrollTarget>; 2],
animated: bool,
}Fields§
§id: Id§state: State§auto_shrink: Vec2b§direction_enabled: Vec2bDoes this ScrollArea have horizontal/vertical scrolling enabled?
show_bars_factor: Vec2Smoothly interpolated boolean of whether or not to show the scroll bars.
current_bar_use: Vec2How 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§scroll_bar_rect: Option<Rect>§inner_rect: RectWhere on the screen the content is (excludes scroll bars).
content_ui: Ui§viewport: RectRelative coordinates: the offset and size of the view of the inner UI.
viewport.min == ZERO means we scrolled to the top.
scroll_source: ScrollSource§wheel_scroll_multiplier: Vec2§stick_to_end: Vec2b§saved_scroll_target: [Option<ScrollTarget>; 2]If there was a scroll target before the ScrollArea was added this frame, it’s
not for us to handle so we save it and restore it after this ScrollArea is done.
animated: bool