tabart.ChromeTabArt

Inheritance diagram for ChromeTabArt:


digraph inheritance73818c7776 {
rankdir=LR;
size="8.0, 12.0";
  "tabart.ChromeTabArt" [style="setlinewidth(0.5)",URL="#tabart.ChromeTabArt",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10];
  "tabart.AuiDefaultTabArt" -> "tabart.ChromeTabArt" [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 Google Chrome browser style. It uses custom bitmap to render the tabs, so that the look and feel is as close as possible to the Chrome style.

@note: The Chrome tab art does not support AUI_NB_BOTTOM alignment.

Class API

Methods

class ChromeTabArt

Bases: tabart.AuiDefaultTabArt

A class to draw tabs using the Google Chrome browser style. It uses custom bitmap to render the tabs, so that the look and feel is as close as possible to the Chrome style.

@note: The Chrome tab art does not support AUI_NB_BOTTOM alignment.

__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.
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