AGW Logo

agw_title RendererXP

Xp-Style renderer.

hierarchy Inheritance Diagram

Inheritance diagram for: RendererXP

Inheritance diagram of RendererXP


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawButtonDraws a button using the XP theme.
DrawButtonColourDraws a button using the XP theme.
DrawButtonThemeDraws a button using the XP theme.
DrawMenuBarBgDraws the menu bar background according to the active theme.
DrawToolBarBgDraws the toolbar background according to the active theme.
GetTextColourEnableReturns the colour used for text colour when enabled.

API Class API

class RendererXP(RendererBase)[source]

Xp-Style renderer.



__init__()[source]

Default class constructor.



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

Draws a button using the XP theme.

Parameters:
  • dc – an instance of wx.DC;
  • rect (wx.Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • input – a flag used to call the right method.


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

Draws a button using the XP theme.

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

  • rect (wx.Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • colour – a valid wx.Colour instance.


DrawButtonTheme(dc, rect, state, useLightColours=None)[source]

Draws a button using the XP theme.

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

  • rect (wx.Rect) – the button’s client rectangle;
  • state (integer) – the button state;
  • useLightColours (bool) – True to use light colours, False otherwise.


DrawMenuBarBg(dc, rect)[source]

Draws the menu bar background according to the active theme.

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

  • rect (wx.Rect) – the menu bar’s client rectangle.


DrawToolBarBg(dc, rect)[source]

Draws the toolbar background according to the active theme.

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

  • rect (wx.Rect) – the toolbar’s client rectangle.


GetTextColourEnable()[source]

Returns the colour used for text colour when enabled.

Returns:An instance of wx.Colour.
Tree

Table Of Contents

Previous topic

RendererMSOffice2007

Next topic

SVN Revision 69086 For artmanager