FNBRendererVC8
This class handles the drawing of tabs using the VC8 renderer.
Inheritance Diagram
Inheritance diagram for class FNBRendererVC8
Methods Summary
Class API
-
class FNBRendererVC8(FNBRenderer)
This class handles the drawing of tabs using the VC8 renderer.
Methods
-
__init__(self)
Default class constructor.
-
DrawTab(self, pageContainer, dc, posx, tabIdx, tabWidth, tabHeight, btnStatus)
Draws a tab using the VC8 style.
Parameters: |
- pageContainer – an instance of FlatNotebook;
- dc – an instance of DC;
- posx – the x position of the tab;
- tabIdx – the index of the tab;
- tabWidth – the tab’s width;
- tabHeight – the tab’s height;
- btnStatus – the status of the ‘X’ button inside this tab.
|
-
DrawTabs(self, pageContainer, dc)
Draws all the tabs using VC8 style.
-
FillVC8GradientColour(self, pageContainer, dc, tabPoints, bSelectedTab, tabIdx)
Fills a tab with a gradient shading.
Parameters: |
- pageContainer – an instance of FlatNotebook;
- dc – an instance of DC;
- tabPoints – a Python list of Point representing the tab outline;
- bSelectedTab – True if the tab is selected, False otherwise;
- tabIdx – the index of the tab;
|
-
GetEndX(self, tabPoints, y, style)
Returns the x end position of a tab.
Parameters: |
- tabPoints – a Python list of Point representing the tab outline;
- y – the y end position of the tab;
- style – can be FNB_BOTTOM or the default (tabs at top).
|
-
GetStartX(self, tabPoints, y, style)
Returns the x start position of a tab.
Parameters: |
- tabPoints – a Python list of Point representing the tab outline;
- y – the y start position of the tab;
- style – can be FNB_BOTTOM or the default (tabs at top).
|
-
NumberTabsCanFit(self, pageContainer, fr=-1)
Calculates the number of tabs that can fit on the available space on screen.
Parameters: |
- pageContainer – an instance of FlatNotebook;
- fr – the current first visible tab.
|