Expand description
Modules§
- cmd
- Commands that control the scoped scroll widget.
- node
- UI nodes used for building the scroll widget.
- scrollbar
- Scrollbar widget, properties and nodes..
- thumb
- Thumb widget, properties and nodes..
Macros§
Structs§
- Auto
Scroll Args - Arguments for the
auto_scroll_indicatorclosure. - SCROLL
- Controls the parent scroll.
- Scroll
WA container that can pan and zoom a child of any size.- Scroll
BarArgs - Arguments for scrollbar widget functions.
- Scroll
Info - Shared reference to the viewport bounds of a scroll.
- Scroll
Mode - What dimensions are scrollable in a widget.
- Scroll
Units Mix mProperties that define scroll units.- Scrollbar
WScrollbar widget.- Scrollbar
FnMix mProperties that defines the scrollbar widget used in scrolls.- Smooth
Scrolling - Smooth scrolling config.
- Thumb
WScrollbar thumb widget.
Enums§
- Lazy
Mode - Lazy init mode of a widget.
- Scroll
From - Defines a scroll delta and to what value source it is applied.
- Zoom
ToFit Mode - Defines how the scale is changed by the
ZOOM_TO_FIT_CMD.
Statics§
- ALT_
FACTOR_ VAR - Scroll unit multiplier used when alternate scrolling.
- AUTO_
HIDE_ EXTRA_ VAR - Extra space added to the viewport auto-hide rectangle.
- AUTO_
SCROLL_ INDICATOR_ VAR - Auto scroll icon/indicator node. The node is child of the auto scroll indicator widget, the full
SCROLLcontext can be used in the indicator. - AUTO_
SCROLL_ VAR - If auto-scrolling on middle click is enabled.
- DEFINE_
VIEWPORT_ UNIT_ VAR - If a scroll widget defines its viewport size as the
LayoutMetrics::viewportfor the scroll content. - HORIZONTAL_
LINE_ UNIT_ VAR - Horizontal offset added when the
SCROLL_RIGHT_CMDruns and removed when theSCROLL_LEFT_CMDruns. - HORIZONTAL_
PAGE_ UNIT_ VAR - Horizontal offset added when the
PAGE_RIGHT_CMDruns and removed when thePAGE_LEFT_CMDruns. - HORIZONTAL_
SCROLLBAR_ FN_ VAR - Widget function for creating the vertical scrollbar of an scroll widget.
- HORIZONTAL_
WHEEL_ UNIT_ VAR - Horizontal offset multiplied by the
MouseScrollDelta::LineDeltax. - MAX_
ZOOM_ VAR - Maximum scale allowed when
ScrollMode::ZOOMis enabled. - MIN_
ZOOM_ VAR - Minimum scale allowed when
ScrollMode::ZOOMis enabled. - OVERSCROLL_
COLOR_ VAR - Color of the overscroll indicator.
- SCROLLBAR_
JOINER_ FN_ VAR - Widget function for the little square that joins the two scrollbars when both are visible.
- SCROLL_
TO_ FOCUSED_ MODE_ VAR - Scroll to mode used when scrolling to make the focused child visible.
- SMOOTH_
SCROLLING_ VAR - Smooth scrolling config for an scroll widget.
- VERTICAL_
LINE_ UNIT_ VAR - Vertical offset added when the
SCROLL_DOWN_CMDruns and removed when theSCROLL_UP_CMDruns. - VERTICAL_
PAGE_ UNIT_ VAR - Vertical offset added when the
PAGE_DOWN_CMDruns and removed when thePAGE_UP_CMDruns. - VERTICAL_
SCROLLBAR_ FN_ VAR - Widget function for creating the vertical scrollbar of an scroll widget.
- VERTICAL_
WHEEL_ UNIT_ VAR - Vertical offset multiplied by the
MouseScrollDelta::LineDeltay. - ZOOM_
TOUCH_ ORIGIN_ VAR - Center point of zoom scaling done using the touch pinch gesture.
- ZOOM_
TO_ FIT_ MODE_ VAR - Defines how the content is scaled to fit.
- ZOOM_
WHEEL_ ORIGIN_ VAR - Center point of zoom scaling done using the mouse scroll wheel.
- ZOOM_
WHEEL_ UNIT_ VAR - Scale delta added or removed from the zoom scale by
MouseScrollDelta::LineDeltaused in zoom operations.
Traits§
- Widget
Info Ext - Scroll extensions for
WidgetInfo.
Functions§
- alt_
factor PScroll unit multiplier used when alternate scrolling.- auto_
hide_ extra PExtra space added to the viewport auto-hide rectangle.- auto_
scroll PEnables or disables auto scroll on mouse middle click.- auto_
scroll_ indicator PAuto scroll icon/indicator node.- clip_
to_ viewport BClip content to only be visible within the viewport, not under scrollbars.- define_
viewport_ unit PIf the scroll defines its viewport size as theLayoutMetrics::viewportfor the scroll content.- h_
line_ unit PHorizontal offset added when theSCROLL_RIGHT_CMDruns and removed when theSCROLL_LEFT_CMDruns.- h_
page_ unit PHorizontal offset added when thePAGE_RIGHT_CMDruns and removed when thePAGE_LEFT_CMDruns.- h_
scrollbar_ fn PHorizontal scrollbar function for all scroll widget descendants.- h_
wheel_ unit PHorizontal offset added when the mouse wheel is scrolling by lines.- horizontal_
offset PBinds thehorizontal_offsetscroll var to the property value.- lazy
PEnables lazy init for the widget.- line_
units PHorizontal and vertical offsets used when scrolling.- max_
zoom PMaximum scale allowed whenScrollMode::ZOOMis enabled.- min_
zoom PMinimum scale allowed whenScrollMode::ZOOMis enabled.- mode
BScroll mode.- mouse_
pan PScroll by grabbing and dragging the content with the mouse primary button.- overscroll_
color PColor of the overscroll indicator.- page_
units PHorizontal and vertical offsets used when page-scrolling.- scroll_
to_ focused_ mode PScroll-to mode used by scroll widgets when scrolling to make the focused child visible.- scrollbar_
fn PScrollbar function for both orientations applicable to all scroll widget descendants.- scrollbar_
joiner_ fn PWidget function for the little square in the corner that joins the two scrollbars when both are visible.- smooth_
scrolling PSmooth scrolling config.- v_
line_ unit PVertical offset added when theSCROLL_DOWN_CMDruns and removed when theSCROLL_UP_CMDruns.- v_
page_ unit PVertical offset added when thePAGE_DOWN_CMDruns and removed when thePAGE_UP_CMDruns.- v_
scrollbar_ fn PVertical scrollbar function for all scroll widget descendants.- v_
wheel_ unit PVertical offset added when the mouse wheel is scrolling by lines.- vertical_
offset PBinds thevertical_offsetscroll var to the property value.- wheel_
units PHorizontal and vertical offsets used when mouse wheel scrolling.- zoom_
origin PCenter point of zoom scaling done using mouse scroll wheel and touch gesture.- zoom_
scale PBinds thezoom_scalescroll var to the property value.- zoom_
size_ only PSet on an descendant ofScroll!to resize the widget instead of scaling it with the scroll zoom.- zoom_
to_ fit_ mode PDefines how the scale is changed to fit the content to the viewport.- zoom_
touch_ origin PCenter point of zoom scaling done using the touch pinch gesture.- zoom_
wheel_ origin PCenter point of zoom scaling done using the mouse scroll wheel.- zoom_
wheel_ unit PScale delta added when the mouse wheel is zooming by lines.