Parent class for the 6 renderers defined: Standard, VC71, Fancy, Firefox 2, VC8 and Ribbon. This class implements the common methods of all 6 renderers.
__init__ | Default class constructor. |
CalcTabHeight | Calculates the height of the input tab. |
CalcTabWidth | Calculates the width of the input tab. |
DrawArrowAccordingToState | Draws the left and right scrolling arrows. |
DrawDragHint | Draws tab drag hint, the default implementation is to do nothing. |
DrawDropDownArrow | Draws the drop-down arrow in the navigation area. |
DrawFocusRectangle | Draws a focus rectangle like the native wx.Notebook. |
DrawLeftArrow | Draws the left navigation arrow. |
DrawRightArrow | Draws the right navigation arrow. |
DrawTabX | Draws the ‘X’ in the selected tab. |
DrawTabs | Actually draws the tabs in FlatNotebook. |
DrawTabsLine | Draws a line over the tabs. |
DrawX | Draw the ‘X’ navigation button in the navigation area. |
GetButtonsAreaLength | Returns the navigation area width. |
GetDropArrowButtonPos | Returns the drop down button position in the navigation area. |
GetLeftButtonPos | Returns the left button position in the navigation area. |
GetRightButtonPos | Returns the right button position in the navigation area. |
GetXPos | Returns the ‘X’ button position in the navigation area. |
NumberTabsCanFit | Calculates the number of tabs that can fit on the available space on screen. |
Parent class for the 6 renderers defined: Standard, VC71, Fancy, Firefox 2, VC8 and Ribbon. This class implements the common methods of all 6 renderers.
Calculates the height of the input tab.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Calculates the width of the input tab.
Parameters: |
|
---|
Draws the left and right scrolling arrows.
Parameters: |
|
---|
Draws tab drag hint, the default implementation is to do nothing. You can override this function to provide a nice feedback to user.
Parameters: |
|
---|
Note
To show your own custom drag and drop UI feedback, you must override this method in your derived class.
Draws the drop-down arrow in the navigation area.
Parameters: |
|
---|
Draws a focus rectangle like the native wx.Notebook.
Parameters: |
|
---|
Draws the left navigation arrow.
Parameters: |
|
---|
Draws the right navigation arrow.
Parameters: |
|
---|
Draws the ‘X’ in the selected tab.
Parameters: |
|
---|
Actually draws the tabs in FlatNotebook.
Parameters: |
|
---|
Draws a line over the tabs.
Parameters: |
|
---|
Draw the ‘X’ navigation button in the navigation area.
Parameters: |
|
---|
Returns the navigation area width.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Returns the drop down button position in the navigation area.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Returns the left button position in the navigation area.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Returns the right button position in the navigation area.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Returns the ‘X’ button position in the navigation area.
Parameters: | pageContainer – an instance of FlatNotebook. |
---|
Calculates the number of tabs that can fit on the available space on screen.
Parameters: |
|
---|