phoenix_title wx.lib.agw.artmanager.RendererXP

Xp-Style renderer.


class_hierarchy Class Hierarchy

Inheritance diagram for class RendererXP:

super_classes Known Superclasses

wx.lib.agw.artmanager.RendererBase


method_summary Methods Summary

__init__

Default class constructor.

DrawButton

Draws a button using the XP theme.

DrawButtonColour

Draws a button using the XP theme.

DrawButtonTheme

Draws a button using the XP theme.

DrawMenuBarBg

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 RendererXP(RendererBase)

Xp-Style renderer.


Methods

__init__(self)

Default class constructor.



DrawButton(self, dc, rect, state, input=None)

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

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(self, dc, rect, state, useLightColours=None)

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

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

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

Returns the colour used for text colour when enabled.

Returns:

An instance of wx.Colour.