1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxMirrorDC documentation
4 %% Author: Vadim Zeitlin
8 %% Copyright: (c) 2003 Vadim Zeitlin
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxMirrorDC
}}\label{wxmirrordc
}
14 wxMirrorDC is a simple wrapper class which is always associated with a real
15 \helpref{wxDC
}{wxdc
} object and either forwards all of its operations to it
16 without changes (no mirroring takes place) or exchanges
{\it x
} and
{\it y
}
17 coordinates which makes it possible to reuse the same code to draw a figure and
18 its mirror -- i.e. reflection related to the diagonal line $x == y$.
20 wxMirrorDC has been added in wxWidgets version
2.5.0.
22 \wxheading{Derived from
}
24 \helpref{wxDC
}{wxdc
}\\
25 \helpref{wxObject
}{wxobject
}
27 \wxheading{Include files
}
33 \helpref{wxCore
}{librarieslist
}
36 \helponly{\insertatlevel{2}{\wxheading{Members
}}}
38 \membersection{wxMirrorDC::wxMirrorDC
}\label{wxmirrordcwxmirrordc
}
40 \func{}{wxMirrorDC
}{\param{wxDC\&
}{dc
},
\param{bool
}{mirror
}}
42 Creates a (maybe) mirrored DC associated with the real
\arg{dc
}. Everything
43 drawn on wxMirrorDC will appear (and maybe mirrored) on
\arg{dc
}.
45 \arg{mirror
} specifies if we do mirror (if it is
\true) or not (if it is