2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmirror.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxMirrorDC
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxMirrorDC
|
|
|
|
@wxheader{dcmirror.h}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
|
|
|
wxMirrorDC is a simple wrapper class which is always associated with a real
|
2008-03-08 08:52:38 -05:00
|
|
|
wxDC object and either forwards all of its operations to it
|
2008-03-08 09:43:31 -05:00
|
|
|
without changes (no mirroring takes place) or exchanges @e x and @e y
|
2008-03-08 08:52:38 -05:00
|
|
|
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 x == y.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
wxMirrorDC has been added in wxWidgets version 2.5.0.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxcore}
|
|
|
|
@category{dc}
|
|
|
|
*/
|
|
|
|
class wxMirrorDC : public wxDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Creates a (maybe) mirrored DC associated with the real @e dc. Everything
|
|
|
|
drawn on wxMirrorDC will appear (and maybe mirrored) on @e dc.
|
2008-03-09 08:33:59 -04:00
|
|
|
@a mirror specifies if we do mirror (if it is @true) or not (if it is
|
2008-03-08 08:52:38 -05:00
|
|
|
@false).
|
|
|
|
*/
|
|
|
|
wxMirrorDC(wxDC& dc, bool mirror);
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|