FF2TabArt
A class to draw tabs using the Firefox 2 (FF2) style.
Inheritance Diagram
Inheritance diagram for: FF2TabArt
Known Superclasses
Methods Summary
__init__ | Default class constructor. |
Clone | Clones the art object. |
DrawTab | Draws a single tab. |
DrawTabBackground | Draws the tab background for the Firefox 2 style. |
GetTabSize | Returns the tab size for the given caption, bitmap and button state. |
Class API
-
class FF2TabArt(AuiDefaultTabArt)[source]
A class to draw tabs using the Firefox 2 (FF2) style.
-
__init__()[source]
Default class constructor.
-
Clone()[source]
Clones the art object.
-
DrawTab(dc, wnd, page, in_rect, close_button_state, paint_control=False)[source]
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 – rectangle the tab should be confined to;
- close_button_state – the state of the close button on the tab;
- paint_control – whether to draw the control inside a tab (if any) on a wx.MemoryDC.
|
-
DrawTabBackground(dc, rect, focus, upperTabs)[source]
Draws the tab background for the Firefox 2 style.
This is more consistent with FlatNotebook than before.
Parameters: |
- dc – a wx.DC device context;
- rect – rectangle the tab should be confined to;
- focus – whether the tab has focus or not;
- upperTabs – whether the style is AUI_NB_TOP or AUI_NB_BOTTOM.
|
-
GetTabSize(dc, wnd, caption, bitmap, active, close_button_state, control)[source]
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 – the tab text caption;
- bitmap – the bitmap displayed on the tab;
- active – whether the tab is selected or not;
- close_button_state – the state of the close button on the tab;
- control – a wx.Window instance inside a tab (or None).
|
Tree