Nested widget to display and control a scrollbar in a window. More...
#include <widget_type.h>
Public Member Functions | |
| NWidgetScrollbar (WidgetType tp, Colours colour, int index) | |
| Scrollbar widget. | |
| void | SetupSmallestSize (Window *w, bool init_array) |
| void | Draw (const Window *w) |
Nested widget to display and control a scrollbar in a window.
Also assign the scrollbar to other widgets using SetScrollbar() to make the mousewheel work.
Definition at line 714 of file widget_type.h.
| NWidgetScrollbar::NWidgetScrollbar | ( | WidgetType | tp, | |
| Colours | colour, | |||
| int | index | |||
| ) |
Scrollbar widget.
| tp | Scrollbar type. (horizontal/vertical) | |
| colour | Colour of the scrollbar. | |
| index | Index in the widget array used by the window system. |
Definition at line 1871 of file widget.cpp.
References NWID_HSCROLLBAR, NWID_VSCROLLBAR, NWidgetCore::SetDataTip(), NWidgetResizeBase::SetFill(), NWidgetCore::SetIndex(), NWidgetResizeBase::SetMinimalSize(), NWidgetResizeBase::SetResize(), NWidgetBase::type, WD_HSCROLLBAR_HEIGHT, and WD_VSCROLLBAR_WIDTH.
1.7.1