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:
parent
9205da74db
commit
e88e16a964
2 changed files with 43 additions and 8 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue