AGW Logo

agw_title FNBRendererVC8

This class handles the drawing of tabs using the VC8 renderer.

hierarchy Inheritance Diagram

Inheritance diagram for: FNBRendererVC8

Inheritance diagram of FNBRendererVC8


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawTabDraws a tab using the VC8 style.
DrawTabsDraws all the tabs using VC8 style.
FillVC8GradientColourFills a tab with a gradient shading.
GetEndXReturns the x end position of a tab.
GetStartXReturns the x start position of a tab.
NumberTabsCanFitCalculates the number of tabs that can fit on the available space on screen.

API Class API

class FNBRendererVC8(FNBRenderer)[source]

This class handles the drawing of tabs using the VC8 renderer.



__init__()[source]

Default class constructor.



DrawTab(pageContainer, dc, posx, tabIdx, tabWidth, tabHeight, btnStatus)[source]

Draws a tab using the VC8 style.

Parameters:
  • 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.


DrawTabs(pageContainer, dc)[source]

Draws all the tabs using VC8 style.

Parameters:


FillVC8GradientColour(pageContainer, dc, tabPoints, bSelectedTab, tabIdx)[source]

Fills a tab with a gradient shading.

Parameters:
  • pageContainer – an instance of FlatNotebook;
  • dc – an instance of wx.DC;

  • tabPoints – a Python list of wx.Point representing the tab outline;
  • bSelectedTabTrue if the tab is selected, False otherwise;
  • tabIdx – the index of the tab;


GetEndX(tabPoints, y, style)[source]

Returns the x end position of a tab.

Parameters:
  • 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).


GetStartX(tabPoints, y, style)[source]

Returns the x start position of a tab.

Parameters:
  • 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).


NumberTabsCanFit(pageContainer, fr=-1)[source]

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.
Tree

Table Of Contents

Previous topic

FNBRendererVC71

Next topic

FlatNotebook