inline void SetSize(double w, double h) { m_width = w; m_height = h; }
- inline void SetFillBrush(wxBrush* brush) { m_fillBrush = brush; }
- inline const wxBrush* GetFillBrush() const { return m_fillBrush; }
+ inline void SetFillBrush(const wxBrush* brush) { m_fillBrush = brush; }
+ inline wxBrush* GetFillBrush() const { return wx_const_cast(wxBrush*, m_fillBrush); }
- inline void SetOutlinePen(wxPen* pen) { m_outlinePen = pen; }
- inline wxPen* GetOutlinePen() const { return m_outlinePen; }
+ inline void SetOutlinePen(const wxPen* pen) { m_outlinePen = pen; }
+ inline wxPen* GetOutlinePen() const { return wx_const_cast(wxPen*, m_outlinePen); }
inline void SetOutlineOp(int op) { m_outlineOp = op; }
inline int GetOutlineOp() const { return m_outlineOp; }
virtual void SetClippingRect(const wxRect& rect);
virtual void DestroyClippingRect();
- virtual void SetPen(wxPen* pen, bool isOutline = false); // TODO: eventually, just store GDI object attributes, not actual
- virtual void SetBrush(wxBrush* brush, bool isFill = false); // pens/brushes etc.
+ virtual void SetPen(const wxPen* pen, bool isOutline = false); // TODO: eventually, just store GDI object attributes, not actual
+ virtual void SetBrush(const wxBrush* brush, bool isFill = false); // pens/brushes etc.
virtual void SetFont(wxFont* font);
virtual void SetTextColour(const wxColour& colour);
virtual void SetBackgroundColour(const wxColour& colour);
// Pen/brush specifying outline/fill colours
// to override operations.
- wxPen* m_outlinePen;
+ const wxPen* m_outlinePen;
const wxBrush* m_fillBrush;
wxList m_outlineColours; // List of the GDI operations that comprise the outline
wxList m_fillColours; // List of the GDI operations that fill the shape
virtual void SetClippingRect(const wxRect& rect);
virtual void DestroyClippingRect();
- virtual void SetDrawnPen(wxPen* pen, bool isOutline = false); // TODO: eventually, just store GDI object attributes, not actual
- virtual void SetDrawnBrush(wxBrush* brush, bool isFill = false); // pens/brushes etc.
+ virtual void SetDrawnPen(const wxPen* pen, bool isOutline = false); // TODO: eventually, just store GDI object attributes, not actual
+ virtual void SetDrawnBrush(const wxBrush* brush, bool isFill = false); // pens/brushes etc.
virtual void SetDrawnFont(wxFont* font);
virtual void SetDrawnTextColour(const wxColour& colour);
virtual void SetDrawnBackgroundColour(const wxColour& colour);