wx.lib.agw.aui.tabart.FF2TabArt¶
A class to draw tabs using the Firefox 2 (FF2) style.
Class Hierarchy¶
Known Superclasses¶
wx.lib.agw.aui.tabart.AuiDefaultTabArt
Methods Summary¶
Default class constructor. |
|
Clones the art object. |
|
Draws a single tab. |
|
Draws the tab background for the Firefox 2 style. |
|
Returns the tab size for the given caption, bitmap and button state. |
Class API¶
- class FF2TabArt(AuiDefaultTabArt)¶
A class to draw tabs using the Firefox 2 (FF2) style.
Methods¶
- __init__(self)¶
Default class constructor.
- Clone(self)¶
Clones the art object.
- DrawTab(self, dc, wnd, page, in_rect, close_button_state, paint_control=False)¶
Draws a single tab.
- Parameters:
dc – a
wx.DC
device context;wnd – a
wx.Window
instance object;page – the tab control page associated with the tab;
in_rect (wx.Rect) – rectangle the tab should be confined to;
close_button_state (integer) – the state of the close button on the tab;
paint_control (bool) – whether to draw the control inside a tab (if any) on a
MemoryDC
.
- DrawTabBackground(self, dc, rect, focus, upperTabs)¶
Draws the tab background for the Firefox 2 style. This is more consistent with
FlatNotebook
than before.
- GetTabSize(self, dc, wnd, caption, bitmap, active, close_button_state, control)¶
Returns the tab size for the given caption, bitmap and button state.
- Parameters:
dc – a
wx.DC
device context;wnd – a
wx.Window
instance object;caption (string) – the tab text caption;
bitmap (wx.Bitmap) – the bitmap displayed on the tab;
active (bool) – whether the tab is selected or not;
close_button_state (integer) – the state of the close button on the tab;
control (wx.Window) – a
wx.Window
instance inside a tab (orNone
).