update updates the splitter visual state
()
| 185 | |
| 186 | // update updates the splitter visual state |
| 187 | func (s *Splitter) update() { |
| 188 | |
| 189 | if s.pressed { |
| 190 | s.applyStyle(&s.styles.Drag) |
| 191 | return |
| 192 | } |
| 193 | if s.mouseOver { |
| 194 | s.applyStyle(&s.styles.Over) |
| 195 | return |
| 196 | } |
| 197 | s.applyStyle(&s.styles.Normal) |
| 198 | } |
| 199 | |
| 200 | // applyStyle applies the specified splitter style |
| 201 | func (s *Splitter) applyStyle(ss *SplitterStyle) { |
no test coverage detected