AGW Logo

agw_title RendererBase

Base class for all theme renderers.

hierarchy Inheritance Diagram

Inheritance diagram for: RendererBase

Inheritance diagram of RendererBase


method_summary Methods Summary

__init__Default class constructor.
DrawBitmapAreaDraws the area below a bitmap and the bitmap itself using a gradient shading.
DrawBitmapBordersDraws borders for a bitmap.
DrawButtonBordersDraws borders for buttons.
GetFontReturns the font used for text.
GetMenuFaceColourReturns the foreground colour for the menu.
GetTextColourDisableReturns the colour used for text colour when disabled.
GetTextColourEnableReturns the colour used for text colour when enabled.

API Class API

class RendererBase(object)[source]

Base class for all theme renderers.



__init__()[source]

Default class constructor. Intentionally empty.



DrawBitmapArea(dc, xpm_name, rect, baseColour, flipSide)[source]

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(dc, rect, penColour, bitmapBorderUpperLeftPen)[source]

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(dc, rect, penColour, brushColour)[source]

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()[source]

Returns the font used for text.

Returns:An instance of wx.Font.


GetMenuFaceColour()[source]

Returns the foreground colour for the menu.

Returns:An instance of wx.Colour.


GetTextColourDisable()[source]

Returns the colour used for text colour when disabled.

Returns:An instance of wx.Colour.


GetTextColourEnable()[source]

Returns the colour used for text colour when enabled.

Returns:An instance of wx.Colour.
Tree

Table Of Contents

Previous topic

DCSaver

Next topic

RendererMSOffice2007