Phoenix Logo

phoenix_title wx.lib.agw.artmanager.RendererBase

Base class for all theme renderers.


class_hierarchy Class Hierarchy

Inheritance diagram for class RendererBase:


method_summary Methods Summary

__init__ Default class constructor. Intentionally empty.
DrawBitmapArea Draws the area below a bitmap and the bitmap itself using a gradient shading.
DrawBitmapBorders Draws borders for a bitmap.
DrawButtonBorders Draws borders for buttons.
GetFont Returns the font used for text.
GetMenuFaceColour Returns the foreground colour for the menu.
GetTextColourDisable Returns the colour used for text colour when disabled.
GetTextColourEnable Returns the colour used for text colour when enabled.

api Class API



class RendererBase(object)

Base class for all theme renderers.


Methods



__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.


GetMenuFaceColour(self)

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.