mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 06:43:58 -07:00
19 lines
515 B
C++
19 lines
515 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);
|
|
virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2);
|
|
|
|
private:
|
|
void OnSashPosChanging(wxSplitterEvent& evt);
|
|
void OnDoubleClick(wxSplitterEvent& evt);
|
|
|
|
int m_DefaultSashPosition;
|
|
int m_SnapTolerance;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|