Table Of Contents

Previous topic

DCSaver

Next topic

RendererMSOffice2007

This Page

phoenix_title RendererBase

Base class for all theme renderers.


class_hierarchy Inheritance Diagram

Inheritance diagram for class RendererBase

Inheritance diagram of 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 DC;
  • xpm_name (string) – a name of a XPM bitmap;
  • rect (Rect) – the bitmap client rectangle;
  • baseColour – a valid 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 DC;
  • rect (Rect) – the button’s client rectangle;
  • penColour – a valid Colour for the pen border;
  • bitmapBorderUpperLeftPen – a valid Colour for the pen upper left border.


DrawButtonBorders(self, dc, rect, penColour, brushColour)

Draws borders for buttons.

Parameters:
  • dc – an instance of DC;
  • rect (Rect) – the button’s client rectangle;
  • penColour – a valid Colour for the pen border;
  • brushColour – a valid Colour for the brush.


GetFont(self)

Returns the font used for text.

Returns:An instance of Font.


GetMenuFaceColour(self)

Returns the foreground colour for the menu.

Returns:An instance of Colour.


GetTextColourDisable(self)

Returns the colour used for text colour when disabled.

Returns:An instance of Colour.


GetTextColourEnable(self)

Returns the colour used for text colour when enabled.

Returns:An instance of Colour.