VC8TabArt
A class to draw tabs using the Visual Studio 2005 (VC8) style.
Inheritance Diagram
Inheritance diagram for: VC8TabArt
Known Superclasses
Methods Summary
Class API
-
class VC8TabArt(AuiDefaultTabArt)[source]
A class to draw tabs using the Visual Studio 2005 (VC8) 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.
|
-
FillVC8GradientColour(dc, tabPoints, active)[source]
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, control=None)[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).
|
-
SetSizingInfo(tab_ctrl_size, tab_count, minMaxTabWidth)[source]
Sets the tab sizing information.
Parameters: |
- tab_ctrl_size – the size of the tab control area;
- tab_count – the number of tabs;
- minMaxTabWidth – a tuple containing the minimum and maximum tab widths
to be used when the AUI_NB_TAB_FIXED_WIDTH style is active.
|
Tree