SetSplit sets the position of the splitter bar. It accepts a value from 0.0 to 1.0
(pos float32)
| 94 | // SetSplit sets the position of the splitter bar. |
| 95 | // It accepts a value from 0.0 to 1.0 |
| 96 | func (s *Splitter) SetSplit(pos float32) { |
| 97 | |
| 98 | s.setSplit(pos) |
| 99 | s.recalc() |
| 100 | } |
| 101 | |
| 102 | // Split returns the current position of the splitter bar. |
| 103 | // It returns a value from 0.0 to 1.0 |
no test coverage detected