It provides primitive scroll box.
Methods
method addChild(self: ScrollRef; other: NodeRef) {...}{.raises: [], tags: [].}
-
Adds a new node in Scroll.
Arguments:
- other is other Node.
method duplicate(self: ScrollRef): ScrollRef {...}{.base, raises: [], tags: [].}
- Duplicates Scroll object and create a new Scroll.
method draw(self: ScrollRef; w, h: GLfloat) {...}{.raises: [GLerror, Exception], tags: [RootEffect].}
- This uses in the window.nim.
method scrollBy(self: ScrollRef; x, y: float) {...}{.base, raises: [], tags: [].}
- Scrolls by x and y, if available.
method scrollTo(self: ScrollRef; x, y: float) {...}{.base, raises: [], tags: [].}
- Scrolls to x and y position.
method handle(self: ScrollRef; event: InputEvent; mouse_on: var NodeRef) {...}{. raises: [Exception], tags: [RootEffect].}
- handles user input. This uses in the window.nim.
method postdraw(self: ScrollRef; w, h: GLfloat) {...}{.raises: [GLerror], tags: [].}
- This uses in the window.nim.