Package wx :: Package lib :: Package agw :: Module flatnotebook :: Class FNBRenderer
[frames | no frames]

Class FNBRenderer

Known Subclasses:
FNBRendererDefault, FNBRendererFancy, FNBRendererFirefox2, FNBRendererVC71, FNBRendererVC8

Parent class for the 4 renderers defined: Standard, VC71, Fancy and VC8. This class implements the common methods of all 4 renderers.
Method Summary
  __init__(self)
Default class constructor.
  CalcTabHeight(self, pageContainer)
Calculates the height of the input tab.
  CalcTabWidth(self, pageContainer, tabIdx, tabHeight)
Calculates the width of the input tab.
  DrawArrowAccordingToState(self, dc, pc, rect)
  DrawDragHint(self, pc, tabIdx)
Draws tab drag hint, the default implementation is to do nothing.
  DrawDropDownArrow(self, pageContainer, dc)
Draws the drop-down arrow in the navigation area.
  DrawFocusRectangle(self, dc, pageContainer, page)
Draws a focus rectangle like the native Notebooks.
  DrawLeftArrow(self, pageContainer, dc)
Draw the left navigation arrow.
  DrawRightArrow(self, pageContainer, dc)
Draw the right navigation arrow.
  DrawTabs(self, pageContainer, dc)
Actually draws the tabs in FlatNotebook.
  DrawTabsLine(self, pageContainer, dc, selTabX1, selTabX2)
Draws a line over the tabs.
  DrawTabX(self, pageContainer, dc, rect, tabIdx, btnStatus)
Draws the 'X' in the selected tab.
  DrawX(self, pageContainer, dc)
Draw the 'X' navigation button in the navigation area.
  GetButtonsAreaLength(self, pageContainer)
Returns the navigation area width.
  GetDropArrowButtonPos(self, pageContainer)
Returns the drop down button position in the navigation area.
  GetLeftButtonPos(self, pageContainer)
Returns the left button position in the navigation area.
  GetRightButtonPos(self, pageContainer)
Returns the right button position in the navigation area.
  GetXPos(self, pageContainer)
Returns the 'X' button position in the navigation area.
  NumberTabsCanFit(self, pageContainer, fr)

Method Details

__init__(self)
(Constructor)

Default class constructor.

CalcTabHeight(self, pageContainer)

Calculates the height of the input tab.

CalcTabWidth(self, pageContainer, tabIdx, tabHeight)

Calculates the width of the input tab.

DrawDragHint(self, pc, tabIdx)

Draws tab drag hint, the default implementation is to do nothing. You can override this function to provide a nice feedback to user.

DrawDropDownArrow(self, pageContainer, dc)

Draws the drop-down arrow in the navigation area.

DrawFocusRectangle(self, dc, pageContainer, page)

Draws a focus rectangle like the native Notebooks.

DrawLeftArrow(self, pageContainer, dc)

Draw the left navigation arrow.

DrawRightArrow(self, pageContainer, dc)

Draw the right navigation arrow.

DrawTabs(self, pageContainer, dc)

Actually draws the tabs in FlatNotebook.

DrawTabsLine(self, pageContainer, dc, selTabX1=-1, selTabX2=-1)

Draws a line over the tabs.

DrawTabX(self, pageContainer, dc, rect, tabIdx, btnStatus)

Draws the 'X' in the selected tab.

DrawX(self, pageContainer, dc)

Draw the 'X' navigation button in the navigation area.

GetButtonsAreaLength(self, pageContainer)

Returns the navigation area width.

GetDropArrowButtonPos(self, pageContainer)

Returns the drop down button position in the navigation area.

GetLeftButtonPos(self, pageContainer)

Returns the left button position in the navigation area.

GetRightButtonPos(self, pageContainer)

Returns the right button position in the navigation area.

GetXPos(self, pageContainer)

Returns the 'X' button position in the navigation area.

Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:55:05 2009 http://epydoc.sf.net