Refactoring by deleting dead WindowEventList struct (#20513)

This commit is contained in:
Aram Kazorian 2023-06-29 22:05:23 -07:00 committed by GitHub
parent 3283dc4255
commit 3f603542ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 36 deletions

View File

@ -223,42 +223,6 @@ struct Focus
}
};
struct WindowEventList
{
void (*close)(struct WindowBase*){};
void (*mouse_up)(struct WindowBase*, WidgetIndex){};
void (*resize)(struct WindowBase*){};
void (*mouse_down)(struct WindowBase*, WidgetIndex, Widget*){};
void (*dropdown)(struct WindowBase*, WidgetIndex, int32_t){};
void (*unknown_05)(struct WindowBase*){};
void (*update)(struct WindowBase*){};
void (*periodic_update)(struct WindowBase*){};
void (*tool_update)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_down)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_drag)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_up)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_abort)(struct WindowBase*, WidgetIndex){};
void (*get_scroll_size)(struct WindowBase*, int32_t, int32_t*, int32_t*){};
void (*scroll_mousedown)(struct WindowBase*, int32_t, const ScreenCoordsXY&){};
void (*scroll_mousedrag)(struct WindowBase*, int32_t, const ScreenCoordsXY&){};
void (*scroll_mouseover)(struct WindowBase*, int32_t, const ScreenCoordsXY&){};
void (*text_input)(struct WindowBase*, WidgetIndex, const char*){};
void (*viewport_rotate)(struct WindowBase*){};
void (*scroll_select)(struct WindowBase*, int32_t, int32_t){};
OpenRCT2String (*tooltip)(struct WindowBase*, const WidgetIndex, const StringId){};
void (*cursor)(struct WindowBase*, WidgetIndex, const ScreenCoordsXY&, CursorID*){};
void (*moved)(struct WindowBase*, const ScreenCoordsXY&){};
void (*invalidate)(struct WindowBase*){};
void (*paint)(struct WindowBase*, DrawPixelInfo&){};
void (*scroll_paint)(struct WindowBase*, DrawPixelInfo&, int32_t){};
typedef void (*fnEventInitializer)(WindowEventList&);
WindowEventList(fnEventInitializer fn)
{
fn(*this);
}
};
struct TrackListVariables
{
bool track_list_being_updated;