AGW Logo

agw_title FNBRendererRibbonTabs

This class handles the drawing of tabs using the Ribbon Tabs renderer.

hierarchy Inheritance Diagram

Inheritance diagram for: FNBRendererRibbonTabs

Inheritance diagram of FNBRendererRibbonTabs


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
CalcTabWidthCalculates the width of the input tab.
DrawTabDraws a tab using the Ribbon Tabs style.
DrawTabsActually draws the tabs in FlatNotebook.

API Class API

class FNBRendererRibbonTabs(FNBRenderer)[source]

This class handles the drawing of tabs using the Ribbon Tabs renderer.



__init__()[source]

Default class constructor.



CalcTabWidth(pageContainer, tabIdx, tabHeight)[source]

Calculates the width of the input tab.

Parameters:
  • pageContainer – an instance of FlatNotebook;
  • tabIdx – the index of the input tab;
  • tabHeight – the height of the tab.


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

Draws a tab using the Ribbon Tabs 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]

Actually draws the tabs in FlatNotebook.

Parameters:
Tree

Table Of Contents

Previous topic

FNBRendererMgr

Next topic

FNBRendererVC71