wx.MirrorDC

Inheritance diagram for wx.MirrorDC:



Description

wx.MirrorDC is a simple wrapper class which is always associated with a real wx.DC object and either forwards all of its operations to it without changes (no mirroring takes place) or exchanges x and y coordinates which makes it possible to reuse the same code to draw a figure and its mirror – i.e. reflection related to the diagonal line y = x.

wx.MirrorDC has been added in wxWidgets version 2.5.0.

Derived From

Methods Summary

Class API

Methods

__init__(dc, mirror)

Creates a mirrored DC associated with the real dc.

Everything drawn on the wx.MirrorDC will appear on the dc, and will be mirrored if the mirror parameter is True.

Parameters:

  • dc (wx.DC)
  • mirror (bool)

Returns:

wx.MirrorDC