wxFreeChart
chartdc.h
1 // Name: chartdc.h
3 // Purpose: A DC that is smart enough to know that antialiasing is enabled
4 // Author: Moskvichev Andrey V.
5 // Created: 2008/11/07
6 // Copyright: (c) 2008-2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef CHARTDC_H
11 #define CHARTDC_H
12 
13 #include <wx/dcmemory.h>
14 
18 class ChartDC
19 {
20 public:
21  ChartDC (wxDC& dc, bool antialias) : m_DC(dc), m_Antialias(antialias) {}
22 
23  wxDC& GetDC()
24  {
25  return m_DC;
26  }
27 
28  bool AntialiasActive()
29  {
30  return m_Antialias;
31  }
32 
33 private:
34  wxDC& m_DC;
35  bool m_Antialias;
36 };
37 
38 #endif /* CHARTDC_H */
DC that includes a flag to indicate antialiased drawing should be used where appropriate.
Definition: chartdc.h:18