AGW Logo

agw_title FMRendererMSOffice2007

Windows Office 2007 style.

hierarchy Inheritance Diagram

Inheritance diagram for: FMRendererMSOffice2007

Inheritance diagram of FMRendererMSOffice2007


subclasses Known Subclasses


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawButtonDraws a button using the Office 2007 theme.
DrawButtonColourDraws a button using the Office 2007 theme.
DrawLeftMarginDraws the menu left margin.
DrawMenuBarBackgroundDraws the menu bar background according to the active theme.
DrawMenuBarButtonDraws the highlight on a FlatMenuBar.
DrawMenuButtonDraws the highlight on a FlatMenu.
DrawToolBarBgDraws the toolbar background according to the active theme.
GetTextColourEnableReturns the colour used for text colour when enabled.

API Class API

class FMRendererMSOffice2007(FMRenderer)[source]

Windows Office 2007 style.



__init__()[source]

Default class constructor.



DrawButton(dc, rect, state, colour=None)[source]

Draws a button using the Office 2007 theme.

Parameters:
  • dc – an instance of wx.DC;
  • rect – an instance of wx.Rect, representing the button client rectangle;
  • state (integer) – the button state;
  • colour – if not None, an instance of wx.Colour to be used to draw the FlatMenuItem background.


DrawButtonColour(dc, rect, state, colour)[source]

Draws a button using the Office 2007 theme.

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

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state;
  • colour – a valid wx.Colour instance.



DrawLeftMargin(item, dc, menuRect)[source]

Draws the menu left margin.

Parameters:
  • item – the FlatMenuItem to paint;
  • dc – an instance of wx.DC;

  • menuRect – an instance of wx.Rect, representing the menu client rectangle.



DrawMenuBarBackground(dc, rect)[source]

Draws the menu bar background according to the active theme.

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

  • rect – an instance of wx.Rect, representing the menubar client rectangle.



DrawMenuBarButton(dc, rect, state)[source]

Draws the highlight on a FlatMenuBar.

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

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state.


DrawMenuButton(dc, rect, state)[source]

Draws the highlight on a FlatMenu.

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

  • rect – an instance of wx.Rect, representing the button client rectangle;

  • state (integer) – the button state.


DrawToolBarBg(dc, rect)[source]

Draws the toolbar background according to the active theme.

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

  • rect – an instance of wx.Rect, representing the toolbar client rectangle.



GetTextColourEnable()[source]

Returns the colour used for text colour when enabled.

Tree

Table Of Contents

Previous topic

FMRenderer

Next topic

FMRendererMgr