phoenix_title wx.lib.agw.flatmenu.FMRendererXP

Xp-Style renderer.


class_hierarchy Class Hierarchy

Inheritance diagram for class FMRendererXP:

method_summary Methods Summary

__init__

Default class constructor.

DrawLeftMargin

Draws the menu left margin.

DrawMenuBarBackground

Draws the menu bar background according to the active theme.

DrawToolBarBg

Draws the toolbar background according to the active theme.

GetTextColourEnable

Returns the colour used for text colour when enabled.


api Class API

class FMRendererXP(FMRenderer)

Xp-Style renderer.


Methods

__init__(self)

Default class constructor.



DrawLeftMargin(self, item, dc, menuRect)

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(self, dc, rect)

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.



DrawToolBarBg(self, dc, rect)

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(self)

Returns the colour used for text colour when enabled.