projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build errors deriving from making wxColourData members private
[wxWidgets.git]
/
include
/
wx
/
mgl
/
brush.h
diff --git
a/include/wx/mgl/brush.h
b/include/wx/mgl/brush.h
index 5d12600bad1b903dc98b18c1b17e691468d8f484..ec06a3821ea8850b72af616db9554f3bdffc8916 100644
(file)
--- a/
include/wx/mgl/brush.h
+++ b/
include/wx/mgl/brush.h
@@
-1,20
+1,15
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: brush.h
+// Name:
wx/mgl/
brush.h
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001
-2002
SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
#ifndef __WX_BRUSH_H__
#define __WX_BRUSH_H__
#ifndef __WX_BRUSH_H__
#define __WX_BRUSH_H__
-#ifdef __GNUG__
-#pragma interface "brush.h"
-#endif
-
#include "wx/defs.h"
#include "wx/object.h"
#include "wx/string.h"
#include "wx/defs.h"
#include "wx/object.h"
#include "wx/string.h"
@@
-25,42
+20,49
@@
// classes
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
-class WXDLL
EXPORT
wxBitmap;
-class WXDLL
EXPORT
wxBrush;
+class WXDLL
IMPEXP_FWD_CORE
wxBitmap;
+class WXDLL
IMPEXP_FWD_CORE
wxBrush;
//-----------------------------------------------------------------------------
// wxBrush
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// wxBrush
//-----------------------------------------------------------------------------
-class WXDLL
EXPORT wxBrush: public wxGDIObject
+class WXDLL
IMPEXP_CORE wxBrush : public wxBrushBase
{
public:
wxBrush() {}
{
public:
wxBrush() {}
- wxBrush(const wxColour &colour, int style);
+ wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
+#if FUTURE_WXWIN_COMPATIBILITY_3_0
+ wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
+#endif
wxBrush(const wxBitmap &stippleBitmap);
wxBrush(const wxBitmap &stippleBitmap);
- wxBrush(const wxBrush &brush);
- ~wxBrush() {}
- wxBrush& operator = (const wxBrush& brush);
- bool operator == (const wxBrush& brush) const;
- bool operator != (const wxBrush& brush) const;
- bool Ok() const;
- int GetStyle() const;
- wxColour &GetColour() const;
+ bool operator==(const wxBrush& brush) const;
+ bool operator!=(const wxBrush& brush) const;
+
+ wxBrushStyle GetStyle() const;
+ wxColour GetColour() const;
wxBitmap *GetStipple() const;
void SetColour(const wxColour& col);
void SetColour(unsigned char r, unsigned char g, unsigned char b);
wxBitmap *GetStipple() const;
void SetColour(const wxColour& col);
void SetColour(unsigned char r, unsigned char g, unsigned char b);
- void SetStyle(
int
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 Unshare();
-
void* GetMaskPattern() const;
void* GetPixPattern() const;
void* GetMaskPattern() const;
void* GetPixPattern() const;
+protected:
+ virtual wxGDIRefData *CreateGDIRefData() const;
+ virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
+
private:
DECLARE_DYNAMIC_CLASS(wxBrush)
};
private:
DECLARE_DYNAMIC_CLASS(wxBrush)
};