setVerticalScrollbarVisible sets the vertical scrollbar visible, creating and initializing it if it's the first time
()
| 320 | |
| 321 | // setVerticalScrollbarVisible sets the vertical scrollbar visible, creating and initializing it if it's the first time |
| 322 | func (s *Scroller) setVerticalScrollbarVisible() { |
| 323 | if s.vscroll == nil { |
| 324 | s.vscroll = NewVScrollBar(s.style.VerticalScrollbar.Broadness, 0) |
| 325 | s.vscroll.applyStyle(&s.style.VerticalScrollbar.ScrollBarStyle) |
| 326 | s.vscroll.Subscribe(OnChange, s.onScrollBarEvent) |
| 327 | s.Add(s.vscroll) |
| 328 | } |
| 329 | s.vscroll.SetVisible(true) |
| 330 | } |
| 331 | |
| 332 | // setVerticalScrollbarVisible sets the horizontal scrollbar visible, creating and initializing it if it's the first time |
| 333 | func (s *Scroller) setHorizontalScrollbarVisible() { |
no test coverage detected