removed non-const accessors for pens, brushes, &c from wxDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -486,26 +486,17 @@ public:
|
|||||||
|
|
||||||
virtual bool Ok() const { return m_ok; }
|
virtual bool Ok() const { return m_ok; }
|
||||||
|
|
||||||
// accessors
|
// accessors and setters
|
||||||
// ---------
|
// ---------------------
|
||||||
|
|
||||||
// const...
|
|
||||||
int GetBackgroundMode() const { return m_backgroundMode; }
|
int GetBackgroundMode() const { return m_backgroundMode; }
|
||||||
const wxBrush& GetBackground() const { return m_backgroundBrush; }
|
const wxBrush& GetBackground() const { return m_backgroundBrush; }
|
||||||
const wxBrush& GetBrush() const { return m_brush; }
|
const wxBrush& GetBrush() const { return m_brush; }
|
||||||
const wxFont& GetFont() const { return m_font; }
|
const wxFont& GetFont() const { return m_font; }
|
||||||
const wxPen& GetPen() const { return m_pen; }
|
const wxPen& GetPen() const { return m_pen; }
|
||||||
const wxColour& GetTextBackground() const { return m_textBackgroundColour; }
|
|
||||||
const wxColour& GetTextForeground() const { return m_textForegroundColour; }
|
const wxColour& GetTextForeground() const { return m_textForegroundColour; }
|
||||||
|
const wxColour& GetTextBackground() const { return m_textBackgroundColour; }
|
||||||
// ... 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; }
|
|
||||||
|
|
||||||
virtual void SetTextForeground(const wxColour& colour)
|
virtual void SetTextForeground(const wxColour& colour)
|
||||||
{ m_textForegroundColour = colour; }
|
{ m_textForegroundColour = colour; }
|
||||||
virtual void SetTextBackground(const wxColour& colour)
|
virtual void SetTextBackground(const wxColour& colour)
|
||||||
|
Reference in New Issue
Block a user