]> git.saurik.com Git - wxWidgets.git/commitdiff
removed non-const accessors for pens, brushes, &c from wxDC
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 21:44:39 +0000 (21:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 21:44:39 +0000 (21:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h

index f805dd61acd50d749cfc4d565626bd233f021dcf..a5ba82da9d016e539cdfcdfe254787d2c047cfa8 100644 (file)
@@ -486,26 +486,17 @@ public:
 
     virtual bool Ok() const { return m_ok; }
 
-    // accessors
-    // ---------
+    // accessors and setters
+    // ---------------------
 
-        // const...
     int GetBackgroundMode() const { return m_backgroundMode; }
     const wxBrush&  GetBackground() const { return m_backgroundBrush; }
     const wxBrush&  GetBrush() const { return m_brush; }
     const wxFont&   GetFont() const { return m_font; }
     const wxPen&    GetPen() const { return m_pen; }
-    const wxColour& GetTextBackground() const { return m_textBackgroundColour; }
-    const wxColour& GetTextForeground() const { return m_textForegroundColour; }
-
-        // ... and non const
-    wxBrush&  GetBackground() { return m_backgroundBrush; }
-    wxBrush&  GetBrush() { return m_brush; }
-    wxFont&   GetFont() { return m_font; }
-    wxPen&    GetPen() { return m_pen; }
-    wxColour& GetTextBackground() { return m_textBackgroundColour; }
-    wxColour& GetTextForeground() { return m_textForegroundColour; }
 
+    const wxColour& GetTextForeground() const { return m_textForegroundColour; }
+    const wxColour& GetTextBackground() const { return m_textBackgroundColour; }
     virtual void SetTextForeground(const wxColour& colour)
         { m_textForegroundColour = colour; }
     virtual void SetTextBackground(const wxColour& colour)