mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
- Made the canvas get shown before it's used. - Added some bits of SDL initialisation so that SDL_GL_GetProcAddress is happy. SnapSplitterWindow: fixed virtual override. This was SVN commit r4735.
19 lines
559 B
C++
19 lines
559 B
C++
#include "wx/splitter.h"
|
|
|
|
class SnapSplitterWindow : public wxSplitterWindow
|
|
{
|
|
public:
|
|
SnapSplitterWindow(wxWindow* parent, long style = wxSP_3D);
|
|
void SetDefaultSashPosition(int sashPosition);
|
|
virtual bool SplitVertically(wxWindow* window1, wxWindow* window2, int sashPosition = 0);
|
|
virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = 0);
|
|
|
|
private:
|
|
void OnSashPosChanging(wxSplitterEvent& evt);
|
|
void OnDoubleClick(wxSplitterEvent& evt);
|
|
|
|
int m_DefaultSashPosition;
|
|
int m_SnapTolerance;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|