MCPcopy
hub / github.com/g3n/engine / Value

Method Value

gui/slider.go:127–130  ·  view source on GitHub ↗

Value returns the current value of the slider considering the current scale factor

()

Source from the content-addressed store, hash-verified

125
126// Value returns the current value of the slider considering the current scale factor
127func (s *Slider) Value() float32 {
128
129 return s.pos * s.scaleFactor
130}
131
132// SetScaleFactor set the slider scale factor (default = 1.0)
133func (s *Slider) SetScaleFactor(factor float32) *Slider {

Callers 5

onScrollBarEventMethod · 0.45
onScrollMethod · 0.45
recalcMethod · 0.45
onVScrollBarMethod · 0.45
newSliderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected