Phoenix Logo

phoenix_title wx.lib.agw.aui.tabart.FF2TabArt

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


class_hierarchy Class Hierarchy

Inheritance diagram for class FF2TabArt:


method_summary Methods Summary

__init__ Default class constructor.
Clone Clones the art object.
DrawTab Draws a single tab.
DrawTabBackground Draws the tab background for the Firefox 2 style.
GetTabSize Returns the tab size for the given caption, bitmap and button state.

api Class API



class FF2TabArt(AuiDefaultTabArt)

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


Methods



__init__(self)

Default class constructor.



Clone(self)

Clones the art object.



DrawTab(self, dc, wnd, page, in_rect, close_button_state, paint_control=False)

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 (wx.Rect) – rectangle the tab should be confined to;
  • close_button_state (integer) – the state of the close button on the tab;
  • paint_control (bool) – whether to draw the control inside a tab (if any) on a MemoryDC.


DrawTabBackground(self, dc, rect, focus, upperTabs)

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 (wx.Rect) – rectangle the tab should be confined to;
  • focus (bool) – whether the tab has focus or not;
  • upperTabs (bool) – whether the style is AUI_NB_TOP or AUI_NB_BOTTOM.


GetTabSize(self, dc, wnd, caption, bitmap, active, close_button_state, control)

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 (string) – the tab text caption;
  • bitmap (wx.Bitmap) – the bitmap displayed on the tab;
  • active (bool) – whether the tab is selected or not;
  • close_button_state (integer) – the state of the close button on the tab;
  • control (wx.Window) – a wx.Window instance inside a tab (or None).