dcmirror.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dcmirror.h
  3. // Purpose: interface of wxMirrorDC
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxMirrorDC
  9. wxMirrorDC is a simple wrapper class which is always associated with a real
  10. wxDC object and either forwards all of its operations to it without changes
  11. (no mirroring takes place) or exchanges @e x and @e y coordinates which
  12. makes it possible to reuse the same code to draw a figure and its mirror --
  13. i.e. reflection related to the diagonal line x == y.
  14. @since 2.5.0
  15. @library{wxcore}
  16. @category{dc}
  17. */
  18. class wxMirrorDC : public wxDC
  19. {
  20. public:
  21. /**
  22. Creates a (maybe) mirrored DC associated with the real @a dc.
  23. Everything drawn on wxMirrorDC will appear (and maybe mirrored) on
  24. @a dc.
  25. @a mirror specifies if we do mirror (if it is @true) or not (if it is
  26. @false).
  27. */
  28. wxMirrorDC(wxDC& dc, bool mirror);
  29. };