tabart.VC8TabArt

Inheritance diagram for VC8TabArt:


digraph inheritance5f46511e07 {
rankdir=LR;
size="8.0, 12.0";
  "tabart.VC8TabArt" [style="setlinewidth(0.5)",URL="#tabart.VC8TabArt",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "tabart.AuiDefaultTabArt" -> "tabart.VC8TabArt" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "tabart.AuiDefaultTabArt" [style="setlinewidth(0.5)",URL="AuiDefaultTabArt.html#tabart.AuiDefaultTabArt",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
}


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.

Table Of Contents

This Page