This has 4 fixed children: # The contents window, a container. # A vertical scrollbar to the right. # A horizontal scrollbar at the bottom. # The corner area between the scrollbars.
Parameters: LandWidget * base
Returns: LandWidget*
Parameters: LandWidget * widget, float dx, float dy
Parameters: LandWidget * widget, int hori, int vert, int empty
Set hori/vert to 1 if the horizontal/vertical scrollbar should be auto hidden. Set empty to 1 if the empty should be auto hidden, and set empty to 2 if the empty should be hidden as soon as one bar is hidden.
Parameters: LandWidget * widget
Returns: bool
Parameters: LandWidget * base, float * x, float * y
Determines the size of the entire scrollable area.
Determines the amount, in pixels, the contents could be scrolled.
Parameters: LandWidget * base, float * l, float * t, float * r, float * b
Determine pixel coordinates of the viewable area.
Parameters: LandWidget * base, float x, float y
Parameters: LandWidget * base, float dx, float dy
Parameters: LandWidget * super
Parameters: LandWidget * widget, LandWidget * add
Add a widget to the scrolling widget. The child widget can be bigger than the parent, and scrollbars will appear to allow scrolling around.
Return the child window of the scrolling window. Usually, a scrolling window has exactly one child window, which is controlled by the scrollbars. That window is returned.
Detach the window managed inside the scrolled window. If there are no other references to it, it will be destroyed.
Parameters: LandWidget * widget, LandWidget * parent, int x, int y, int w, int h
Parameters: LandWidget * widget, int wheel
0: no wheel scrolling 1: wheel scrolling [default] 2: unlimited scrolling
Parameters: LandWidget * parent, int x, int y, int w, int h
Creates a new Scrolling widget. You can add a child widget to it, and it will automatically display scrollbars and translate mouse coordinates.
By default, the widget will expand in all directions.
no parameters
Parameters: LandWidget * widget, bool yes
If this is set there will not be a horizontal scrollbar, instead the width of the child will always be to fit the width exactly.