- /* For compatibility across platforms (not in event table) */
- void OnIdle(wxIdleEvent& WXUNUSED(event)) {};
+#if WXWIN_COMPATIBILITY
+ // event handlers
+ // Handle a control command
+ virtual void OnCommand(wxWindow& win, wxCommandEvent& event);
+
+ // Override to define new behaviour for default action (e.g. double
+ // clicking on a listbox)
+ virtual void OnDefaultAction(wxControl * WXUNUSED(initiatingItem)) { }
+#endif // WXWIN_COMPATIBILITY
+
+ virtual WXWidget GetHandle() const { return m_wnd; }
+
+ void SetMGLwindow_t(struct window_t *wnd);
+
+ // implementation from now on
+ // --------------------------
+
+protected:
+ // the window handle
+ struct window_t *m_wnd;
+ // whether there should be wxEraseEvent before wxPaintEvent or not
+ // (see wxWindow::Refresh)
+ bool m_frozen:1;
+ bool m_refreshAfterThaw:1;
+ int m_eraseBackground;