2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmirror.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxMirrorDC
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxMirrorDC
|
2008-03-08 14:43:31 +00:00
|
|
|
|
|
|
|
wxMirrorDC is a simple wrapper class which is always associated with a real
|
2008-04-19 08:12:58 +00:00
|
|
|
wxDC object and either forwards all of its operations to it without changes
|
|
|
|
(no mirroring takes place) or exchanges @e x and @e 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 x == y.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-04-21 10:34:23 +00:00
|
|
|
@since 2.5.0
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
|
|
|
@category{dc}
|
|
|
|
*/
|
|
|
|
class wxMirrorDC : public wxDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2008-04-19 08:12:58 +00:00
|
|
|
Creates a (maybe) mirrored DC associated with the real @a dc.
|
|
|
|
Everything drawn on wxMirrorDC will appear (and maybe mirrored) on
|
|
|
|
@a dc.
|
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@a mirror specifies if we do mirror (if it is @true) or not (if it is
|
2008-03-08 13:52:38 +00:00
|
|
|
@false).
|
|
|
|
*/
|
|
|
|
wxMirrorDC(wxDC& dc, bool mirror);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|