#include <wx/aui/auibook.h>
Default art provider for wxAuiNotebook.
![]()
Generic Appearance
|
Public Member Functions | |
wxAuiDefaultTabArt () | |
virtual | ~wxAuiDefaultTabArt () |
wxAuiTabArt * | Clone () |
Clones the art object. More... | |
void | SetFlags (unsigned int flags) |
Sets flags. More... | |
void | SetSizingInfo (const wxSize &tabCtrlSize, size_t tabCount, wxWindow *wnd=nullptr) |
Sets sizing information. More... | |
void | SetNormalFont (const wxFont &font) |
Sets the normal font for drawing labels. More... | |
void | SetSelectedFont (const wxFont &font) |
Sets the font for drawing text for selected UI elements. More... | |
void | SetMeasuringFont (const wxFont &font) |
Sets the font used for calculating measurements. More... | |
void | SetColour (const wxColour &colour) |
Sets the colour of the inactive tabs. More... | |
void | SetActiveColour (const wxColour &colour) |
Sets the colour of the selected tab. More... | |
void | DrawBackground (wxDC &dc, wxWindow *wnd, const wxRect &rect) |
Draws a background on the given area. More... | |
void | DrawTab (wxDC &dc, wxWindow *wnd, const wxAuiNotebookPage &pane, const wxRect &inRect, int closeButtonState, wxRect *outTabRect, wxRect *outButtonRect, int *xExtent) |
Draws a tab. More... | |
void | DrawButton (wxDC &dc, wxWindow *wnd, const wxRect &inRect, int bitmapId, int buttonState, int orientation, wxRect *outRect) |
Draws a button. More... | |
int | GetIndentSize () |
Returns the indent size. More... | |
wxSize | GetTabSize (wxReadOnlyDC &dc, wxWindow *wnd, const wxString &caption, const wxBitmapBundle &bitmap, bool active, int closeButtonState, int *xExtent) |
Returns the tab size for the given caption, bitmap and state. More... | |
int | ShowDropDown (wxWindow *wnd, const wxAuiNotebookPageArray &items, int activeIdx) |
int | GetBestTabCtrlSize (wxWindow *wnd, const wxAuiNotebookPageArray &pages, const wxSize &requiredBmpSize) |
Returns the tab control size. More... | |
![]() | |
wxAuiTabArt () | |
Constructor. More... | |
virtual int | DrawPageTab (wxDC &dc, wxWindow *wnd, wxAuiNotebookPage &page, const wxRect &rect) |
Draws a tab for the specified notebook page. More... | |
virtual wxFont | GetNormalFont () const |
Returns the font to use for normal, non-selected, tabs. More... | |
virtual wxFont | GetSelectedFont () const |
Returns the font to use for the selected tab. More... | |
virtual wxSize | GetPageTabSize (wxReadOnlyDC &dc, wxWindow *wnd, const wxAuiNotebookPage &page, int *xExtent=nullptr) |
Returns the size of the tab for the specified notebook page. More... | |
virtual int | GetButtonRect (wxReadOnlyDC &dc, wxWindow *wnd, const wxRect &inRect, int bitmapId, int buttonState, int orientation, wxRect *outRect=nullptr) |
Returns the rectangle for the given button. More... | |
Protected Attributes | |
wxFont | m_normalFont |
The font used for all tabs. More... | |
wxFont | m_selectedFont |
wxFont | m_measuringFont |
The font used on the selected tab. More... | |
wxColour | m_baseColour |
wxPen | m_baseColourPen |
wxPen | m_borderPen |
wxBrush | m_baseColourBrush |
wxColour | m_activeColour |
wxBitmapBundle | m_activeCloseBmp |
wxBitmapBundle | m_disabledCloseBmp |
wxBitmapBundle | m_activeLeftBmp |
wxBitmapBundle | m_disabledLeftBmp |
wxBitmapBundle | m_activeRightBmp |
wxBitmapBundle | m_disabledRightBmp |
wxBitmapBundle | m_activeWindowListBmp |
wxBitmapBundle | m_disabledWindowListBmp |
int | m_fixedTabWidth |
int | m_tabCtrlHeight |
unsigned int | m_flags |
wxAuiDefaultTabArt::wxAuiDefaultTabArt | ( | ) |
|
virtual |
|
virtual |
Clones the art object.
Implements wxAuiTabArt.
Draws a background on the given area.
Implements wxAuiTabArt.
|
virtual |
Draws a button.
Implements wxAuiTabArt.
|
virtual |
Draws a tab.
This function used to be pure virtual and so had to be overridden in the derived classes in the previous versions of wxWidgets, however since version 3.3.0 it doesn't have to be overridden if DrawPageTab() is overridden and, moreover, it is recommended to override DrawPageTab() instead of this function in the new code.
Reimplemented from wxAuiTabArt.
|
virtual |
Returns the tab control size.
Implements wxAuiTabArt.
|
virtual |
Returns the indent size.
Implements wxAuiTabArt.
|
virtual |
Returns the tab size for the given caption, bitmap and state.
This function used to be pure virtual and so had to be overridden in the derived classes in the previous versions of wxWidgets, however since version 3.3.0 it doesn't have to be overridden if GetPageTabSize() is overridden and it is recommended to override GetPageTabSize() instead of this function in the new code.
Reimplemented from wxAuiTabArt.
|
virtual |
|
virtual |
|
virtual |
Sets flags.
Implements wxAuiTabArt.
|
virtual |
Sets the font used for calculating measurements.
Implements wxAuiTabArt.
|
virtual |
|
virtual |
Sets the font for drawing text for selected UI elements.
Implements wxAuiTabArt.
|
virtual |
Sets sizing information.
The wnd argument is only present in wxWidgets 3.1.6 and newer and is required, it only has nullptr default value for compatibility reasons.
Implements wxAuiTabArt.
int wxAuiDefaultTabArt::ShowDropDown | ( | wxWindow * | wnd, |
const wxAuiNotebookPageArray & | items, | ||
int | activeIdx | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The font used on the selected tab.
|
protected |
The font used for all tabs.
|
protected |
|
protected |