Expand description
Scroll widgets, properties and nodes.
§Crate
This crate is part of the zng
project.
§Cargo Features
This crate provides 2 feature flags, 1 enabled by default.
§"debug_default"
Enables the "dyn_closure"
in debug builds.
Enabled by default.
§"dyn_closure"
Box closures at opportune places, such as Var::map
, reducing the number of monomorphised types.
This speeds-up compilation time at the cost of runtime.
Modules§
- Commands that control the scoped scroll widget.
- UI nodes used for building the scroll widget.
- Scrollbar widget, properties and nodes..
- Thumb widget, properties and nodes..
Macros§
Structs§
- Arguments for the
auto_scroll_indicator
closure. - Controls the parent scroll.
W
A container that can pan and zoom a child of any size.- Arguments for scrollbar widget functions.
- Shared reference to the viewport bounds of a scroll.
- What dimensions are scrollable in a widget.
m
Properties that define scroll units.W
Scrollbar widget.m
Properties that defines the scrollbar widget used in scrolls.- Smooth scrolling config.
W
Scrollbar thumb widget.
Enums§
- Lazy loading mode of a widget.
- Defines a scroll delta and to what value source it is applied.
Statics§
- Scroll unit multiplier used when alternate scrolling.
- Extra space added to the viewport auto-hide rectangle.
- Auto scroll icon/indicator node. The node is child of the auto scroll indicator widget, the full
SCROLL
context can be used in the indicator. - If auto-scrolling on middle click is enabled.
- If a scroll widget defines its viewport size as the
LayoutMetrics::viewport
for the scroll content. - Horizontal offset added when the
SCROLL_RIGHT_CMD
runs and removed when theSCROLL_LEFT_CMD
runs. - Horizontal offset added when the
PAGE_RIGHT_CMD
runs and removed when thePAGE_LEFT_CMD
runs. - Widget function for creating the vertical scrollbar of an scroll widget.
- Horizontal offset multiplied by the
MouseScrollDelta::LineDelta
x. - Maximum scale allowed when
ScrollMode::ZOOM
is enabled. - Minimum scale allowed when
ScrollMode::ZOOM
is enabled. - Color of the overscroll indicator.
- Widget function for the little square that joins the two scrollbars when both are visible.
- Scroll to mode used when scrolling to make the focused child visible.
- Smooth scrolling config for an scroll widget.
- Vertical offset added when the
SCROLL_DOWN_CMD
runs and removed when theSCROLL_UP_CMD
runs. - Vertical offset added when the
PAGE_DOWN_CMD
runs and removed when thePAGE_UP_CMD
runs. - Widget function for creating the vertical scrollbar of an scroll widget.
- Vertical offset multiplied by the
MouseScrollDelta::LineDelta
y. - Center point of zoom scaling done using the touch pinch gesture.
- Center point of zoom scaling done using the mouse scroll wheel.
- Scale delta added or removed from the zoom scale by
MouseScrollDelta::LineDelta
used in zoom operations.
Traits§
- Scroll extensions for
WidgetInfo
.
Functions§
P
Scroll unit multiplier used when alternate scrolling.P
Extra space added to the viewport auto-hide rectangle.P
Enables or disables auto scroll on mouse middle click.P
Auto scroll icon/indicator node.c
Clip content to only be visible within the viewport, not under scrollbars.P
If the scroll defines its viewport size as theLayoutMetrics::viewport
for the scroll content.P
Horizontal scrollbar function for all scroll widget descendants.P
Horizontal offset added when the mouse wheel is scrolling by lines.P
Binds thehorizontal_offset
scroll var to the property value.P
Enables lazy init for the widget.P
Horizontal and vertical offsets used when scrolling.P
Maximum scale allowed whenScrollMode::ZOOM
is enabled.P
Minimum scale allowed whenScrollMode::ZOOM
is enabled.c
Scroll mode.P
Scroll by grabbing and dragging the content with the mouse primary button.P
Color of the overscroll indicator.P
Horizontal and vertical offsets used when page-scrolling.P
Scroll-to mode used by scroll widgets when scrolling to make the focused child visible.P
Scrollbar function for both orientations applicable to all scroll widget descendants.P
Widget function for the little square in the corner that joins the two scrollbars when both are visible.P
Smooth scrolling config.P
Vertical scrollbar function for all scroll widget descendants.P
Vertical offset added when the mouse wheel is scrolling by lines.P
Binds thevertical_offset
scroll var to the property value.P
Horizontal and vertical offsets used when mouse wheel scrolling.P
Center point of zoom scaling done using mouse scroll wheel and touch gesture.P
Binds thezoom_scale
scroll var to the property value.P
Center point of zoom scaling done using the touch pinch gesture.P
Center point of zoom scaling done using the mouse scroll wheel.P
Scale delta added when the mouse wheel is zooming by lines.