This class handles the drawing of tabs using the VC8 renderer.
wx.lib.agw.flatnotebook.FNBRenderer
Default class constructor. |
|
Draws a tab using the VC8 style. |
|
Draws all the tabs using VC8 style. |
|
Fills a tab with a gradient shading. |
|
Returns the x end position of a tab. |
|
Returns the x start position of a tab. |
|
Calculates the number of tabs that can fit on the available space on screen. |
This class handles the drawing of tabs using the VC8 renderer.
Default class constructor.
Draws a tab using the VC8 style.
pageContainer – an instance of FlatNotebook
;
dc – an instance of wx.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.
Draws all the tabs using VC8 style.
pageContainer – an instance of FlatNotebook
;
dc – an instance of wx.DC
.
Fills a tab with a gradient shading.
pageContainer – an instance of FlatNotebook
;
dc – an instance of wx.DC
;
tabPoints – a Python list of wx.Point
representing the tab outline;
bSelectedTab – True
if the tab is selected, False
otherwise;
tabIdx – the index of the tab;
Returns the x end position of a tab.
tabPoints – a Python list of wx.Point
representing the tab outline;
y – the y end position of the tab;
style – can be FNB_BOTTOM
or the default (tabs at top).
Returns the x start position of a tab.
tabPoints – a Python list of wx.Point
representing the tab outline;
y – the y start position of the tab;
style – can be FNB_BOTTOM
or the default (tabs at top).
Calculates the number of tabs that can fit on the available space on screen.
pageContainer – an instance of FlatNotebook
;
fr – the current first visible tab.