declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as it's useless there (compilation of user code doing pen.SetStyle(wxDOT) still fails)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,11 +55,6 @@ public:
|
|||||||
|
|
||||||
virtual bool IsHatch() const
|
virtual bool IsHatch() const
|
||||||
{ return (GetStyle()>=wxBRUSHSTYLE_FIRST_HATCH) && (GetStyle()<=wxBRUSHSTYLE_LAST_HATCH); }
|
{ return (GetStyle()>=wxBRUSHSTYLE_FIRST_HATCH) && (GetStyle()<=wxBRUSHSTYLE_LAST_HATCH); }
|
||||||
|
|
||||||
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
|
||||||
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
|
||||||
{ SetStyle((wxBrushStyle)style); }
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXPALMOS__)
|
#if defined(__WXPALMOS__)
|
||||||
|
@@ -55,6 +55,11 @@ public:
|
|||||||
virtual wxBrushStyle GetStyle() const;
|
virtual wxBrushStyle GetStyle() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// wxCocoa
|
// wxCocoa
|
||||||
WX_NSColor GetNSColor();
|
WX_NSColor GetNSColor();
|
||||||
|
|
||||||
|
@@ -54,6 +54,12 @@ public:
|
|||||||
int GetDashes(wxDash **ptr) const;
|
int GetDashes(wxDash **ptr) const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Cocoa-specific
|
||||||
WX_NSColor GetNSColor();
|
WX_NSColor GetNSColor();
|
||||||
int GetCocoaLineDash(const CGFloat **pattern);
|
int GetCocoaLineDash(const CGFloat **pattern);
|
||||||
|
|
||||||
|
@@ -50,6 +50,11 @@ public:
|
|||||||
void SetStyle(wxBrushStyle style);
|
void SetStyle(wxBrushStyle style);
|
||||||
void SetStipple(const wxBitmap& stipple);
|
void SetStipple(const wxBitmap& stipple);
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -61,6 +61,11 @@ public:
|
|||||||
wxDash* GetDash() const;
|
wxDash* GetDash() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -41,6 +41,11 @@ public:
|
|||||||
void SetStyle( wxBrushStyle style );
|
void SetStyle( wxBrushStyle style );
|
||||||
void SetStipple( const wxBitmap& stipple );
|
void SetStipple( const wxBitmap& stipple );
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -50,6 +50,11 @@ public:
|
|||||||
wxDash* GetDash() const;
|
wxDash* GetDash() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -51,6 +51,11 @@ public:
|
|||||||
void SetStyle( wxBrushStyle style );
|
void SetStyle( wxBrushStyle style );
|
||||||
void SetStipple( const wxBitmap& stipple );
|
void SetStipple( const wxBitmap& stipple );
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -64,6 +64,11 @@ public:
|
|||||||
wxDash* GetDash() const;
|
wxDash* GetDash() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -49,6 +49,11 @@ public:
|
|||||||
void SetStyle(wxBrushStyle style);
|
void SetStyle(wxBrushStyle style);
|
||||||
void SetStipple(const wxBitmap& stipple);
|
void SetStipple(const wxBitmap& stipple);
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// implementation:
|
// implementation:
|
||||||
|
|
||||||
void* GetMaskPattern() const;
|
void* GetMaskPattern() const;
|
||||||
|
@@ -60,6 +60,11 @@ public:
|
|||||||
wxDash* GetDash() const;
|
wxDash* GetDash() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// implementation:
|
// implementation:
|
||||||
void* GetPixPattern() const;
|
void* GetPixPattern() const;
|
||||||
|
|
||||||
|
@@ -43,6 +43,11 @@ public:
|
|||||||
wxBrushStyle GetStyle() const;
|
wxBrushStyle GetStyle() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// return the HBRUSH for this brush
|
// return the HBRUSH for this brush
|
||||||
virtual WXHANDLE GetResourceHandle() const;
|
virtual WXHANDLE GetResourceHandle() const;
|
||||||
|
|
||||||
|
@@ -55,6 +55,11 @@ public:
|
|||||||
int GetDashCount() const;
|
int GetDashCount() const;
|
||||||
wxBitmap* GetStipple() const;
|
wxBitmap* GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// internal: wxGDIObject methods
|
// internal: wxGDIObject methods
|
||||||
virtual bool RealizeResource();
|
virtual bool RealizeResource();
|
||||||
virtual bool FreeResource(bool force = false);
|
virtual bool FreeResource(bool force = false);
|
||||||
|
@@ -40,6 +40,11 @@ public:
|
|||||||
wxBitmap* GetStipple(void) const;
|
wxBitmap* GetStipple(void) const;
|
||||||
int GetPS(void) const;
|
int GetPS(void) const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Implementation
|
// Implementation
|
||||||
//
|
//
|
||||||
|
@@ -69,6 +69,11 @@ public:
|
|||||||
int GetDashCount() const;
|
int GetDashCount() const;
|
||||||
wxBitmap* GetStipple(void) const;
|
wxBitmap* GetStipple(void) const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Implementation
|
// Implementation
|
||||||
//
|
//
|
||||||
|
@@ -42,6 +42,11 @@ public:
|
|||||||
wxBrushStyle GetStyle() const ;
|
wxBrushStyle GetStyle() const ;
|
||||||
wxBitmap *GetStipple() const ;
|
wxBitmap *GetStipple() const ;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -52,6 +52,11 @@ public:
|
|||||||
|
|
||||||
wxBitmap *GetStipple() const ;
|
wxBitmap *GetStipple() const ;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// Implementation
|
// Implementation
|
||||||
|
|
||||||
// Useful helper: create the brush resource
|
// Useful helper: create the brush resource
|
||||||
|
@@ -45,6 +45,11 @@ public:
|
|||||||
wxBrushStyle GetStyle() const;
|
wxBrushStyle GetStyle() const;
|
||||||
wxBitmap *GetStipple() const;
|
wxBitmap *GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// return the HBRUSH for this brush
|
// return the HBRUSH for this brush
|
||||||
virtual WXHANDLE GetResourceHandle() const;
|
virtual WXHANDLE GetResourceHandle() const;
|
||||||
|
|
||||||
|
@@ -125,6 +125,11 @@ public:
|
|||||||
WXHANDLE GetResourceHandle() const;
|
WXHANDLE GetResourceHandle() const;
|
||||||
bool IsFree() const;
|
bool IsFree() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData* CreateGDIRefData() const;
|
virtual wxGDIRefData* CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
|
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
|
||||||
|
@@ -84,33 +84,28 @@ public:
|
|||||||
virtual wxPenCap GetCap() const = 0;
|
virtual wxPenCap GetCap() const = 0;
|
||||||
virtual int GetWidth() const = 0;
|
virtual int GetWidth() const = 0;
|
||||||
virtual int GetDashes(wxDash **ptr) const = 0;
|
virtual int GetDashes(wxDash **ptr) const = 0;
|
||||||
|
|
||||||
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
|
||||||
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
|
||||||
{ SetStyle((wxPenStyle)style); }
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXPALMOS__)
|
#if defined(__WXPALMOS__)
|
||||||
#include "wx/palmos/pen.h"
|
#include "wx/palmos/pen.h"
|
||||||
#elif defined(__WXMSW__)
|
#elif defined(__WXMSW__)
|
||||||
#include "wx/msw/pen.h"
|
#include "wx/msw/pen.h"
|
||||||
#elif defined(__WXMOTIF__) || defined(__WXX11__)
|
#elif defined(__WXMOTIF__) || defined(__WXX11__)
|
||||||
#include "wx/x11/pen.h"
|
#include "wx/x11/pen.h"
|
||||||
#elif defined(__WXGTK20__)
|
#elif defined(__WXGTK20__)
|
||||||
#include "wx/gtk/pen.h"
|
#include "wx/gtk/pen.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#include "wx/gtk1/pen.h"
|
#include "wx/gtk1/pen.h"
|
||||||
#elif defined(__WXMGL__)
|
#elif defined(__WXMGL__)
|
||||||
#include "wx/mgl/pen.h"
|
#include "wx/mgl/pen.h"
|
||||||
#elif defined(__WXDFB__)
|
#elif defined(__WXDFB__)
|
||||||
#include "wx/dfb/pen.h"
|
#include "wx/dfb/pen.h"
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
#include "wx/osx/pen.h"
|
#include "wx/osx/pen.h"
|
||||||
#elif defined(__WXCOCOA__)
|
#elif defined(__WXCOCOA__)
|
||||||
#include "wx/cocoa/pen.h"
|
#include "wx/cocoa/pen.h"
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
#include "wx/os2/pen.h"
|
#include "wx/os2/pen.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxPenList: public wxGDIObjListBase
|
class WXDLLIMPEXP_CORE wxPenList: public wxGDIObjListBase
|
||||||
|
@@ -50,6 +50,11 @@ public:
|
|||||||
void SetStyle( wxBrushStyle style );
|
void SetStyle( wxBrushStyle style );
|
||||||
void SetStipple( const wxBitmap& stipple );
|
void SetStipple( const wxBitmap& stipple );
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxBrushStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
@@ -64,6 +64,11 @@ public:
|
|||||||
wxDash* GetDash() const;
|
wxDash* GetDash() const;
|
||||||
wxBitmap* GetStipple() const;
|
wxBitmap* GetStipple() const;
|
||||||
|
|
||||||
|
#if FUTURE_WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_FUTURE( void SetStyle(int style) )
|
||||||
|
{ SetStyle((wxPenStyle)style); }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||||
|
Reference in New Issue
Block a user