mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-20 15:25:25 +00:00
cf37e9cbe6
main.cpp: Allowed correct operation when not calling Init/Shutdown. Game.cpp: Stopped complaint when starting game with no GUI. This was SVN commit r2446.
18 lines
453 B
C++
18 lines
453 B
C++
#include "wx/splitter.h"
|
|
|
|
class SnapSplitterWindow : public wxSplitterWindow
|
|
{
|
|
public:
|
|
SnapSplitterWindow(wxWindow* parent);
|
|
virtual bool SplitVertically(wxWindow *window1, wxWindow *window2, int sashPosition);
|
|
virtual bool SplitHorizontally(wxWindow *window1, wxWindow *window2, int sashPosition);
|
|
|
|
private:
|
|
void OnSashPosChanging(wxSplitterEvent& evt);
|
|
|
|
int m_DefaultSashPosition;
|
|
int m_SnapTolerance;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|