diff --git a/include/wx/aui/auibook.h b/include/wx/aui/auibook.h index 221d2a4ed2..dc3f509510 100644 --- a/include/wx/aui/auibook.h +++ b/include/wx/aui/auibook.h @@ -352,6 +352,10 @@ public: virtual wxSize DoGetBestSize() const wxOVERRIDE; + wxAuiTabCtrl* GetTabCtrlFromPoint(const wxPoint& pt); + wxAuiTabCtrl* GetActiveTabCtrl(); + bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx); + protected: // Common part of all ctors. void Init(); @@ -381,10 +385,7 @@ protected: void DoSizing(); void InitNotebook(long style); - wxAuiTabCtrl* GetTabCtrlFromPoint(const wxPoint& pt); wxWindow* GetTabFrameFromTabCtrl(wxWindow* tabCtrl); - wxAuiTabCtrl* GetActiveTabCtrl(); - bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx); void RemoveEmptyTabFrames(); void UpdateHintWindowSize(); diff --git a/interface/wx/aui/auibook.h b/interface/wx/aui/auibook.h index 0f168ba8b8..47b0f685a8 100644 --- a/interface/wx/aui/auibook.h +++ b/interface/wx/aui/auibook.h @@ -405,6 +405,29 @@ public: Returns the image index for the given page. */ virtual int GetPageImage(size_t nPage) const; + + /** + Returns tab control based on point coordinates inside the tab frame. + + @since 3.1.4 + */ + wxAuiTabCtrl* GetTabCtrlFromPoint(const wxPoint& pt); + + /** + Returns active tab control for this notebook. + + @since 3.1.4 + */ + wxAuiTabCtrl* GetActiveTabCtrl(); + + /** + Finds tab control associated with a given window and its tab index. + + @return @true when the tab control is found, @false otherwise. + + @since 3.1.4 + */ + bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx); };