NewScroller creates and returns a pointer to a new Scroller with the specified target IPanel and ScrollMode.
(width, height float32, mode ScrollMode, target IPanel)
| 88 | // NewScroller creates and returns a pointer to a new Scroller with the specified |
| 89 | // target IPanel and ScrollMode. |
| 90 | func NewScroller(width, height float32, mode ScrollMode, target IPanel) *Scroller { |
| 91 | |
| 92 | s := new(Scroller) |
| 93 | s.initialize(width, height, mode, target) |
| 94 | return s |
| 95 | } |
| 96 | |
| 97 | // initialize initializes this scroller and can be called by other types which embed a scroller |
| 98 | func (s *Scroller) initialize(width, height float32, mode ScrollMode, target IPanel) { |
nothing calls this directly
no test coverage detected