MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Scrollbar

Struct Scrollbar

gui.go:3359–3375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3357func (image *GUIImage) Destroy() {}
3358
3359type Scrollbar struct {
3360 MouseClose bool
3361 Rect *sdl.FRect
3362 Value float32
3363 TargetValue float32
3364 ValueMin float32
3365 ValueMax float32
3366 Soft bool // Controls if sliding the scrollbar is smooth or not
3367 WorldSpace bool
3368 OnValueSet func()
3369 OnRelease func()
3370 Highlighter *Highlighter
3371 Dragging bool
3372 Property *Property
3373 DrawOnlyWhenMouseIsClose bool
3374 DisplayValue bool
3375}
3376
3377func NewScrollbar(rect *sdl.FRect, valueMin, valueMax float32, worldSpace bool, property *Property) *Scrollbar {
3378

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected