#include <wx/aui/auibook.h>
wxAuiTabContainer is a class which contains information about each tab.
It also can render an entire tab control to a specified DC. It's not a window class itself, because this code will be used by the wxAuiNotebook, where it is disadvantageous to have separate windows for each tab control in the case of "docked tabs".
A derived class, wxAuiTabCtrl, is an actual wxWindow - derived window which can be used as a tab control in the normal sense.
Classes | |
| struct | HitTestResult |
Public Types | |
| enum | HitTestFlags { HitTest_Default = 0 , HitTest_AllowAfterTab = 1 } |
Public Member Functions | |
| wxAuiTabContainer () | |
| Default ctor. More... | |
| virtual | ~wxAuiTabContainer () |
| Default dtor. More... | |
| void | SetArtProvider (wxAuiTabArt *art) |
| wxAuiTabArt * | GetArtProvider () const |
| void | SetFlags (unsigned int flags) |
| unsigned int | GetFlags () const |
| bool | IsFlagSet (unsigned int flag) const |
| Returns true if the given flag is set. More... | |
| bool | AddPage (const wxAuiNotebookPage &info) |
| bool | InsertPage (const wxAuiNotebookPage &info, size_t idx) |
| bool | MovePage (wxWindow *page, size_t newIdx) |
| bool | RemovePage (wxWindow *page) |
| void | RemovePageAt (size_t idx) |
| bool | SetActivePage (const wxWindow *page) |
| bool | SetActivePage (size_t page) |
| void | SetNoneActive () |
| int | GetActivePage () const |
| HitTestResult | TabHitTest (const wxPoint &pt, int flags=HitTest_Default) const |
| const wxAuiTabContainerButton * | ButtonHitTest (const wxPoint &pt) const |
| wxWindow * | GetWindowFromIdx (size_t idx) const |
| int | GetIdxFromWindow (const wxWindow *page) const |
| size_t | GetPageCount () const |
| wxAuiNotebookPage & | GetPage (size_t idx) |
| const wxAuiNotebookPage & | GetPage (size_t idx) const |
| wxAuiNotebookPageArray & | GetPages () |
| void | SetNormalFont (const wxFont &normalFont) |
| void | SetSelectedFont (const wxFont &selectedFont) |
| void | SetMeasuringFont (const wxFont &measuringFont) |
| void | SetColour (const wxColour &colour) |
| void | SetActiveColour (const wxColour &colour) |
| void | DoShowHide () |
| void | SetRect (const wxRect &rect, wxWindow *wnd=nullptr) |
| void | RemoveButton (int id) |
| void | AddButton (int id, int location, const wxBitmapBundle &normalBitmap=wxBitmapBundle(), const wxBitmapBundle &disabledBitmap=wxBitmapBundle()) |
| size_t | GetTabOffset () const |
| void | SetTabOffset (size_t offset) |
| bool | IsTabVisible (int tabPage, int tabOffset, wxDC *dc, wxWindow *wnd) |
| void | MakeTabVisible (int tabPage, wxWindow *win) |
Protected Member Functions | |
| virtual void | Render (wxDC *dc, wxWindow *wnd) |
Protected Attributes | |
| wxAuiTabArt * | m_art |
| wxAuiNotebookPageArray | m_pages |
| wxAuiTabContainerButtonArray | m_buttons |
| wxAuiTabContainerButtonArray | m_tabCloseButtons |
| wxRect | m_rect |
| size_t | m_tabOffset |
| unsigned int | m_flags |
| wxAuiTabContainer::wxAuiTabContainer | ( | ) |
Default ctor.
|
virtual |
Default dtor.
| void wxAuiTabContainer::AddButton | ( | int | id, |
| int | location, | ||
| const wxBitmapBundle & | normalBitmap = wxBitmapBundle(), |
||
| const wxBitmapBundle & | disabledBitmap = wxBitmapBundle() |
||
| ) |
| bool wxAuiTabContainer::AddPage | ( | const wxAuiNotebookPage & | info | ) |
| const wxAuiTabContainerButton* wxAuiTabContainer::ButtonHitTest | ( | const wxPoint & | pt | ) | const |
| void wxAuiTabContainer::DoShowHide | ( | ) |
| int wxAuiTabContainer::GetActivePage | ( | ) | const |
| wxAuiTabArt* wxAuiTabContainer::GetArtProvider | ( | ) | const |
| unsigned int wxAuiTabContainer::GetFlags | ( | ) | const |
| int wxAuiTabContainer::GetIdxFromWindow | ( | const wxWindow * | page | ) | const |
| wxAuiNotebookPage& wxAuiTabContainer::GetPage | ( | size_t | idx | ) |
| const wxAuiNotebookPage& wxAuiTabContainer::GetPage | ( | size_t | idx | ) | const |
| size_t wxAuiTabContainer::GetPageCount | ( | ) | const |
| wxAuiNotebookPageArray& wxAuiTabContainer::GetPages | ( | ) |
| size_t wxAuiTabContainer::GetTabOffset | ( | ) | const |
| wxWindow* wxAuiTabContainer::GetWindowFromIdx | ( | size_t | idx | ) | const |
| bool wxAuiTabContainer::InsertPage | ( | const wxAuiNotebookPage & | info, |
| size_t | idx | ||
| ) |
| bool wxAuiTabContainer::IsFlagSet | ( | unsigned int | flag | ) | const |
Returns true if the given flag is set.
| void wxAuiTabContainer::MakeTabVisible | ( | int | tabPage, |
| wxWindow * | win | ||
| ) |
| bool wxAuiTabContainer::MovePage | ( | wxWindow * | page, |
| size_t | newIdx | ||
| ) |
| void wxAuiTabContainer::RemoveButton | ( | int | id | ) |
| bool wxAuiTabContainer::RemovePage | ( | wxWindow * | page | ) |
| void wxAuiTabContainer::RemovePageAt | ( | size_t | idx | ) |
| void wxAuiTabContainer::SetActiveColour | ( | const wxColour & | colour | ) |
| bool wxAuiTabContainer::SetActivePage | ( | const wxWindow * | page | ) |
| bool wxAuiTabContainer::SetActivePage | ( | size_t | page | ) |
| void wxAuiTabContainer::SetArtProvider | ( | wxAuiTabArt * | art | ) |
| void wxAuiTabContainer::SetColour | ( | const wxColour & | colour | ) |
| void wxAuiTabContainer::SetFlags | ( | unsigned int | flags | ) |
| void wxAuiTabContainer::SetMeasuringFont | ( | const wxFont & | measuringFont | ) |
| void wxAuiTabContainer::SetNoneActive | ( | ) |
| void wxAuiTabContainer::SetNormalFont | ( | const wxFont & | normalFont | ) |
| void wxAuiTabContainer::SetSelectedFont | ( | const wxFont & | selectedFont | ) |
| void wxAuiTabContainer::SetTabOffset | ( | size_t | offset | ) |
| HitTestResult wxAuiTabContainer::TabHitTest | ( | const wxPoint & | pt, |
| int | flags = HitTest_Default |
||
| ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |