API ReferenceEditor
SliderDrawingclass
Shared dimensions and painting for single-value and interval sliders.
object→SliderDrawing
Methods2
Showing 2 methods
public static void DrawHandle(Editor.Widget widget, Sandbox.Rect rect, float position)
Draws a handle centered at the given position, measured from the left of rect. Uses the owning widget's cursor and enabled state for hover highlighting.
| Parameter | Type | Description |
|---|---|---|
| widget | Widget | — |
| rect | Rect | — |
| position | float | — |
Returns:
void—public static void DrawTrack(Sandbox.Rect rect, float start, float end, Color highlight, bool disabled = False)
Draws the track and selected interval. Endpoint positions are measured from the left of rect, at the centers of the handles.
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | — |
| start | float | — |
| end | float | — |
| highlight | Color | — |
| disabled = False | bool | — |
Returns:
void—No results match this filter.