wx.aui.AuiGenericTabArt¶
An art provider for wx.aui.AuiNotebook implementing “glossy” look.
This art provider is used as fallback art provider for AuiNativeTabArt if there is no native tab art provider, but may also be used directly.
See also
Class Hierarchy¶
Methods Summary¶
Clones the art object. |
|
Draws a background on the given area. |
|
Draws a button. |
|
Draws a tab. |
|
Returns the indent size. |
|
Returns the tab size for the given caption, bitmap and state. |
|
Sets the colour of the selected tab. |
|
Sets the colour of the inactive tabs. |
|
Sets flags. |
|
Sets the font used for calculating measurements. |
|
Sets the normal font for drawing labels. |
|
Sets the font for drawing text for selected UI elements. |
|
Sets sizing information. |
Properties Summary¶
See |
Class API¶
- class wx.aui.AuiGenericTabArt(AuiTabArt)¶
Possible constructors:
AuiGenericTabArt() -> None
An art provider for AuiNotebook implementing “glossy” look.
Methods¶
- __init__(self)¶
- Return type:
None
- Clone(self)¶
Clones the art object.
- Return type:
- DrawBackground(self, dc, wnd, rect)¶
Draws a background on the given area.
- DrawButton(self, dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect)¶
Draws a button.
- DrawTab(self, dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect, x_extent)¶
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
DrawPageTabis overridden and, moreover, it is recommended to overrideDrawPageTabinstead of this function in the new code.
- GetIndentSize(self)¶
Returns the indent size.
- Return type:
int
- GetTabSize(self, dc, wnd, caption, bitmap, active, close_button_state, x_extent)¶
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
GetPageTabSizeis overridden and it is recommended to overrideGetPageTabSizeinstead of this function in the new code.- Parameters:
dc (wx.ReadOnlyDC)
wnd (wx.Window)
caption (string)
bitmap (wx.BitmapBundle)
active (bool)
close_button_state (int)
x_extent (int)
- Return type:
Size
- SetActiveColour(self, colour)¶
Sets the colour of the selected tab.
- Parameters:
colour (wx.Colour)
- Return type:
None
Added in version 2.9.2.
- SetColour(self, colour)¶
Sets the colour of the inactive tabs.
- Parameters:
colour (wx.Colour)
- Return type:
None
Added in version 2.9.2.
- SetFlags(self, flags)¶
Sets flags.
- Parameters:
flags (int)
- Return type:
None
- SetMeasuringFont(self, font)¶
Sets the font used for calculating measurements.
- Parameters:
font (wx.Font)
- Return type:
None
- SetNormalFont(self, font)¶
Sets the normal font for drawing labels.
- Parameters:
font (wx.Font)
- Return type:
None
See also
- SetSelectedFont(self, font)¶
Sets the font for drawing text for selected UI elements.
- Parameters:
font (wx.Font)
- Return type:
None
See also
- SetSizingInfo(self, tab_ctrl_size, tab_count, wnd=nullptr)¶
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.
Properties¶
- IndentSize¶
See
GetIndentSize