X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e725ba4fc2984f86fc64c405ecb50883e2178e6e..f1ddb476b1d90a1e24f904eb74462f5dc5165442:/interface/wx/splitter.h?ds=sidebyside diff --git a/interface/wx/splitter.h b/interface/wx/splitter.h index e1838691d6..7269d4a9b0 100644 --- a/interface/wx/splitter.h +++ b/interface/wx/splitter.h @@ -37,7 +37,7 @@ @endStyleTable - @beginEventTable{wxSplitterEvent} + @beginEventEmissionTable{wxSplitterEvent} @event{EVT_SPLITTER_SASH_POS_CHANGING(id, func)} The sash position is in the process of being changed. May be used to modify the position of the tracking bar to properly @@ -95,7 +95,7 @@ public: @see Initialize(), SplitVertically(), SplitHorizontally(), Create() */ - wxSplitterWindow(wxWindow* parent, wxWindowID id, + wxSplitterWindow(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_3D, @@ -110,11 +110,10 @@ public: Creation function, for two-step construction. See wxSplitterWindow() for details. */ - bool Create(wxWindow* parent, wxWindowID id, + bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& point = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxSP_3D, - const wxString& name = "splitterWindow"); + const wxSize& size = wxDefaultSize, long style = wxSP_3D, + const wxString& name = "splitter"); /** Returns the current minimum pane size (defaults to zero). @@ -142,7 +141,7 @@ public: @see SetSplitMode(), SplitVertically(), SplitHorizontally(). */ - int GetSplitMode() const; + wxSplitMode GetSplitMode() const; /** Returns the left/top or only pane. @@ -284,7 +283,7 @@ public: @see GetSashPosition() */ - void SetSashPosition(int position, const bool redraw = true); + void SetSashPosition(int position, bool redraw = true); /** Sets the sash size. Normally, the sash size is determined according to the @@ -330,8 +329,8 @@ public: @see SplitVertically(), IsSplit(), Unsplit() */ - bool SplitHorizontally(wxWindow* window1, wxWindow* window2, - int sashPosition = 0); + virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2, + int sashPosition = 0); /** Initializes the left and right panes of the splitter window. @@ -357,8 +356,8 @@ public: @see SplitHorizontally(), IsSplit(), Unsplit(). */ - bool SplitVertically(wxWindow* window1, wxWindow* window2, - int sashPosition = 0); + virtual bool SplitVertically(wxWindow* window1, wxWindow* window2, + int sashPosition = 0); /** Unsplits the window. @@ -424,7 +423,7 @@ public: @library{wxcore} @category{events} - @see wxSplitterWindow, @ref overview_eventhandling + @see wxSplitterWindow, @ref overview_events */ class wxSplitterEvent : public wxNotifyEvent {