API ReferenceSandbox.UI

ScrollBarclass

A scrollbar for one axis of a scrolling panel. Created by the panel while that axis overflows and its `scrollbar-width` is non-zero. Configured with `scrollbar-width`, `scrollbar-color` and `scrollbar-gutter` on the scrolling panel, like the web.

objectPanelScrollBar
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.UI.ScrollBar : Sandbox.UI.Panel

Methods2

Showing 2 methods

public virtual void OnLayout(Sandbox.Rect layoutRect)PUBLICVIRTUAL

ParameterTypeDescription
layoutRectRect
Returns:void

public virtual void Tick()PUBLICVIRTUAL

Returns:void

Properties2

Showing 2 properties

public bool Sandbox.UI.ScrollBar.IsVertical { get; set; }PUBLICGETSET

Returns:bool

public virtual bool Sandbox.UI.ScrollBar.WantsDrag { get; set; }PUBLICVIRTUALGETSET

Returns:bool

On this page