pub struct ScrollbarOverlay {
pub node_ptr: usize,
pub clip_bounds: Rect,
pub clip_radius: BorderRadius,
pub thumb_bounds: Rect,
pub color: Color,
pub thumb_radius: BorderRadius,
}Expand description
Precomputed scrollbar thumb overlay bound to a specific scroll container LayoutNode
so Compositor emits it inline inside that container’s stacking context and clip bounds.
Fields§
§node_ptr: usizePointer identity (node as *const LayoutNode as usize) of the owning scroll container.
clip_bounds: RectClip bounds in the owning container’s coordinate space.
clip_radius: BorderRadiusClip corner radius.
thumb_bounds: RectThumb rectangle in the owning container’s coordinate space.
color: ColorThumb fill color (including hover/active alpha).
thumb_radius: BorderRadiusThumb corner radius.
Trait Implementations§
Source§impl Clone for ScrollbarOverlay
impl Clone for ScrollbarOverlay
impl Copy for ScrollbarOverlay
Auto Trait Implementations§
impl Forget for ScrollbarOverlay
impl Freeze for ScrollbarOverlay
impl Move for ScrollbarOverlay
impl RefUnwindSafe for ScrollbarOverlay
impl Send for ScrollbarOverlay
impl Sync for ScrollbarOverlay
impl Unpin for ScrollbarOverlay
impl UnsafeUnpin for ScrollbarOverlay
impl UnwindSafe for ScrollbarOverlay
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