forked from rosebudai/OpenRCT2-Web
Add Window::InitScrollWidgets()
This is just a wrapper around WindowInitScrollWidgets(), but better matches the code style.
This commit is contained in:
1 parent
149b164ee8
commit
b2a1c72867
2 files changed
+6
No files matched your search
@@ -707,6 +707,11 @@ void Window::OnDrawWidget(rct_widgetindex widgetIndex, rct_drawpixelinfo& dpi)
|
||||
WidgetDraw(&dpi, this, widgetIndex);
|
||||
}
|
||||
|
||||
void Window::InitScrollWidgets()
|
||||
{
|
||||
WindowInitScrollWidgets(this);
|
||||
}
|
||||
|
||||
void Window::InvalidateWidget(rct_widgetindex widgetIndex)
|
||||
{
|
||||
widget_invalidate(this, widgetIndex);
|
||||
|
||||
@@ -18,6 +18,7 @@ struct Window : rct_window
|
||||
virtual void OnDraw(rct_drawpixelinfo& dpi) override;
|
||||
virtual void OnDrawWidget(rct_widgetindex widgetIndex, rct_drawpixelinfo& dpi) override;
|
||||
|
||||
void InitScrollWidgets();
|
||||
void InvalidateWidget(rct_widgetindex widgetIndex);
|
||||
bool IsWidgetDisabled(rct_widgetindex widgetIndex) const;
|
||||
bool IsWidgetPressed(rct_widgetindex widgetIndex) const;
|
||||
|
||||
Reference in new issue
Block a user