tabart.VC8TabArt
Inheritance diagram for VC8TabArt:
Description
A class to draw tabs using the Visual Studio 2005 (VC8) style.
Class API
Methods
-
class VC8TabArt
Bases: tabart.AuiDefaultTabArt
A class to draw tabs using the Visual Studio 2005 (VC8) style.
-
__init__()
- Default class constructor.
-
Clone()
- Clones the art object.
-
DrawTab(dc, wnd, page, in_rect, close_button_state)
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.
|
-
FillVC8GradientColour(dc, tabPoints, active)
Fills the tab with the Visual Studio 2005 gradient background.
Parameters: |
- dc – a wx.DC device context;
- tabPoints – a list of wx.Point objects describing the tab shape;
- active – whether the tab is selected or not.
|
-
GetTabSize(dc, wnd, caption, bitmap, active, close_button_state)
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.
|
-
SetSizingInfo(tab_ctrl_size, tab_count)
Sets the tab sizing information.
Parameters: |
- tab_ctrl_size – the size of the tab control area;
- tab_count – the number of tabs.
|