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