AGW Logo

agw_title FF2TabArt

A class to draw tabs using the Firefox 2 (FF2) style.

hierarchy Inheritance Diagram

Inheritance diagram for: FF2TabArt

Inheritance diagram of FF2TabArt


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
CloneClones the art object.
DrawTabDraws a single tab.
DrawTabBackgroundDraws the tab background for the Firefox 2 style.
GetTabSizeReturns the tab size for the given caption, bitmap and button state.

API 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

Table Of Contents

Previous topic

ChromeTabArt

Next topic

VC71TabArt