wx.lib.agw.artmanager.RendererBase
Base class for all theme renderers.
Class Hierarchy

Inheritance diagram for class
RendererBase:
Methods Summary
Class API
-
class RendererBase(object)
Base class for all theme renderers.
-
__init__(self)
Default class constructor. Intentionally empty.
-
DrawBitmapArea(self, dc, xpm_name, rect, baseColour, flipSide)
Draws the area below a bitmap and the bitmap itself using a gradient shading.
- Parameters
dc – an instance of wx.DC
;
xpm_name (string) – a name of a XPM bitmap;
rect (wx.Rect) – the bitmap client rectangle;
baseColour – a valid wx.Colour
for the bitmap background;
flipSide (bool) – True
to flip the gradient direction, False
otherwise.
-
DrawBitmapBorders(self, dc, rect, penColour, bitmapBorderUpperLeftPen)
Draws borders for a bitmap.
- Parameters
dc – an instance of wx.DC
;
rect (wx.Rect) – the button’s client rectangle;
penColour – a valid wx.Colour
for the pen border;
bitmapBorderUpperLeftPen – a valid wx.Colour
for the pen upper
left border.
-
DrawButtonBorders(self, dc, rect, penColour, brushColour)
Draws borders for buttons.
- Parameters
dc – an instance of wx.DC
;
rect (wx.Rect) – the button’s client rectangle;
penColour – a valid wx.Colour
for the pen border;
brushColour – a valid wx.Colour
for the brush.
-
GetFont(self)
Returns the font used for text.
- Returns
An instance of wx.Font
.
Returns the foreground colour for the menu.
- Returns
An instance of wx.Colour
.
-
GetTextColourDisable(self)
Returns the colour used for text colour when disabled.
- Returns
An instance of wx.Colour
.
-
GetTextColourEnable(self)
Returns the colour used for text colour when enabled.
- Returns
An instance of wx.Colour
.