Allow reusing wxGTK window enter/leave callback

Refactor the existing callbacks to make it possible to call them from
other places than src/gtk/window.cpp.

No real changes yet.
This commit is contained in:
Vadim Zeitlin 2024-02-19 00:22:52 +01:00
parent 9205da74db
commit e88e16a964
2 changed files with 43 additions and 8 deletions

View file

@ -94,6 +94,17 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
// contain the mouse pointer.
bool SetWindowUnderMouse(wxWindowGTK* win);
// Implementation of enter/leave window callbacks.
gboolean
WindowEnterCallback(GtkWidget* widget,
GdkEventCrossing* event,
wxWindowGTK* win);
gboolean
WindowLeaveCallback(GtkWidget* widget,
GdkEventCrossing* event,
wxWindowGTK* win);
} // namespace wxGTKImpl
#endif // _GTK_PRIVATE_EVENT_H_