Skip to main content

Module scrollbar

Module scrollbar 

Source
Expand description

CSS properties for styling scrollbars.

Structs§

ComputedScrollbarStyle
The final, resolved style for a scrollbar, after considering both standard and -webkit- properties. This struct is intended for use by the layout engine.
OverscrollBehaviorXY
Combined overscroll behavior for X and Y axes
ScrollPhysics
Scroll physics configuration for momentum scrolling
ScrollbarColorCustom
Wrapper struct for custom scrollbar colors (thumb and track)
ScrollbarInfo
Holds info necessary for layouting / styling -webkit-scrollbar properties.
ScrollbarStyle
Scrollbar style for both horizontal and vertical scrollbars.

Enums§

CssScrollbarStyleParseError
CssScrollbarStyleParseErrorOwned
LayoutScrollbarWidth
Represents the standard scrollbar-width property.
LayoutScrollbarWidthParseError
LayoutScrollbarWidthParseErrorOwned
OverscrollBehavior
CSS overscroll-behavior property - controls overscroll effects https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
ScrollBehavior
CSS scroll-behavior property - controls smooth scrolling https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
StyleScrollbarColor
Represents the standard scrollbar-color property.
StyleScrollbarColorParseError
StyleScrollbarColorParseErrorOwned

Constants§

SCROLLBAR_ANDROID_DARK
A modern, thin, overlay scrollbar inspired by Android (Dark Theme).
SCROLLBAR_ANDROID_LIGHT
A modern, thin, overlay scrollbar inspired by Android (Light Theme).
SCROLLBAR_CLASSIC_DARK
A classic dark-themed scrollbar.
SCROLLBAR_CLASSIC_LIGHT
A classic light-themed scrollbar, similar to older Windows versions.
SCROLLBAR_IOS_DARK
A modern, thin, overlay scrollbar inspired by iOS (Dark Theme).
SCROLLBAR_IOS_LIGHT
A modern, thin, overlay scrollbar inspired by iOS (Light Theme).
SCROLLBAR_MACOS_DARK
A modern, thin, overlay scrollbar inspired by macOS (Dark Theme).
SCROLLBAR_MACOS_LIGHT
A modern, thin, overlay scrollbar inspired by macOS (Light Theme).
SCROLLBAR_WINDOWS_DARK
A modern scrollbar inspired by Windows 11 (Dark Theme).
SCROLLBAR_WINDOWS_LIGHT
A modern scrollbar inspired by Windows 11 (Light Theme).

Functions§

parse_layout_scrollbar_width
parse_scrollbar_style
parse_style_scrollbar_color
resolve_scrollbar_style
Resolves the final scrollbar style for a node based on standard and non-standard CSS properties.