X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba06d5a8ccf8c224fcfbd52fa01a55abf7befbd..9f556d1dd6a06524c0d5419862836b9f0e9e6e1d:/contrib/include/wx/ogl/basic.h diff --git a/contrib/include/wx/ogl/basic.h b/contrib/include/wx/ogl/basic.h index 0e4e5f34a1..c0db18d8f4 100644 --- a/contrib/include/wx/ogl/basic.h +++ b/contrib/include/wx/ogl/basic.h @@ -12,16 +12,16 @@ #ifndef _OGL_BASIC_H_ #define _OGL_BASIC_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "basic.h" -#endif - #ifndef wxUSE_DEPRECATED -#define wxUSE_DEPRECATED 1 +#define wxUSE_DEPRECATED 0 #endif #if wxUSE_DEPRECATED -#include + #include "wx/deprecated/setup.h" +#endif + +#ifndef wxUSE_PROLOGIO + #define wxUSE_PROLOGIO 0 #endif #define OGL_VERSION 2.0 @@ -300,8 +300,8 @@ class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler inline void SetId(long i) { m_id = i; } inline long GetId() const { return m_id; } - void SetPen(wxPen *pen); - void SetBrush(wxBrush *brush); + void SetPen(const wxPen *pen); + void SetBrush(const wxBrush *brush); virtual void Show(bool show); virtual bool IsShown() const { return m_visible; } @@ -329,8 +329,8 @@ class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler void AddText(const wxString& string); - inline wxPen *GetPen() const { return m_pen; } - inline wxBrush *GetBrush() const { return m_brush; } + inline wxPen *GetPen() const { return wx_const_cast(wxPen*, m_pen); } + inline wxBrush *GetBrush() const { return wx_const_cast(wxBrush*, m_brush); } /* * Region-specific functions (defaults to the default region @@ -527,8 +527,8 @@ class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler wxShapeEvtHandler* m_eventHandler; bool m_formatted; double m_xpos, m_ypos; - wxPen* m_pen; - wxBrush* m_brush; + const wxPen* m_pen; + const wxBrush* m_brush; wxFont* m_font; wxColour m_textColour; wxString m_textColourName; @@ -558,7 +558,7 @@ class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler wxShape* m_parent; // In case it's a child int m_formatMode; int m_shadowMode; - wxBrush* m_shadowBrush; + const wxBrush* m_shadowBrush; int m_shadowOffsetX; int m_shadowOffsetY; int m_textMarginX; // Gap between text and border