]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcmirror.h | |
e54c96f1 | 3 | // Purpose: interface of wxMirrorDC |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxMirrorDC | |
11 | @wxheader{dcmirror.h} | |
7c913512 FM |
12 | |
13 | wxMirrorDC is a simple wrapper class which is always associated with a real | |
23324ae1 | 14 | wxDC object and either forwards all of its operations to it |
7c913512 | 15 | without changes (no mirroring takes place) or exchanges @e x and @e y |
23324ae1 FM |
16 | coordinates which makes it possible to reuse the same code to draw a figure and |
17 | its mirror -- i.e. reflection related to the diagonal line x == y. | |
7c913512 | 18 | |
23324ae1 | 19 | wxMirrorDC has been added in wxWidgets version 2.5.0. |
7c913512 | 20 | |
23324ae1 FM |
21 | @library{wxcore} |
22 | @category{dc} | |
23 | */ | |
24 | class wxMirrorDC : public wxDC | |
25 | { | |
26 | public: | |
27 | /** | |
28 | Creates a (maybe) mirrored DC associated with the real @e dc. Everything | |
29 | drawn on wxMirrorDC will appear (and maybe mirrored) on @e dc. | |
4cc4bfaf | 30 | @a mirror specifies if we do mirror (if it is @true) or not (if it is |
23324ae1 FM |
31 | @false). |
32 | */ | |
33 | wxMirrorDC(wxDC& dc, bool mirror); | |
34 | }; | |
e54c96f1 | 35 |