pub struct ScrollbarProps {
pub layout: LayoutStyle,
pub axis: ScrollbarAxis,
pub scroll_target: Option<GlobalElementId>,
pub scroll_handle: ScrollHandle,
pub style: ScrollbarStyle,
}Expand description
A mechanism-only scrollbar primitive.
Component libraries decide when to show/hide scrollbars and resolve theme tokens into this style. The runtime owns hit-testing, thumb/track interactions, and paints using the resolved style.
Fields§
§layout: LayoutStyle§axis: ScrollbarAxis§scroll_target: Option<GlobalElementId>Declarative element id for the associated scroll container, if any.
When provided, the scrollbar will invalidate the target node’s layout/paint when the scroll handle offset changes (e.g. thumb drag or track paging).
scroll_handle: ScrollHandle§style: ScrollbarStyleTrait Implementations§
Source§impl Clone for ScrollbarProps
impl Clone for ScrollbarProps
Source§fn clone(&self) -> ScrollbarProps
fn clone(&self) -> ScrollbarProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollbarProps
impl Debug for ScrollbarProps
Source§impl Default for ScrollbarProps
impl Default for ScrollbarProps
Source§fn default() -> ScrollbarProps
fn default() -> ScrollbarProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScrollbarProps
impl !RefUnwindSafe for ScrollbarProps
impl !Send for ScrollbarProps
impl !Sync for ScrollbarProps
impl Unpin for ScrollbarProps
impl UnsafeUnpin for ScrollbarProps
impl !UnwindSafe for ScrollbarProps
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