2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-10-04 16:13:42 +00:00
|
|
|
// Name: wx/mac/carbon/brush.h
|
2004-03-23 17:35:05 +00:00
|
|
|
// Purpose: wxBrush class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_BRUSH_H_
|
|
|
|
#define _WX_BRUSH_H_
|
|
|
|
|
|
|
|
#include "wx/gdicmn.h"
|
|
|
|
#include "wx/gdiobj.h"
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxBrush;
|
2004-03-23 17:35:05 +00:00
|
|
|
|
|
|
|
// Brush
|
2004-12-03 15:31:31 +00:00
|
|
|
class WXDLLEXPORT wxBrush: public wxBrushBase
|
2004-03-23 17:35:05 +00:00
|
|
|
{
|
2007-12-15 17:54:20 +00:00
|
|
|
public:
|
2004-11-30 18:46:20 +00:00
|
|
|
wxBrush();
|
|
|
|
wxBrush(const wxColour& col, int style = wxSOLID);
|
|
|
|
wxBrush(const wxBitmap& stipple);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxBrush();
|
2004-11-30 18:46:20 +00:00
|
|
|
|
2005-10-04 16:13:42 +00:00
|
|
|
virtual void SetColour(const wxColour& col) ;
|
2005-10-04 18:14:41 +00:00
|
|
|
virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
|
2004-11-30 18:46:20 +00:00
|
|
|
virtual void SetStyle(int style) ;
|
|
|
|
virtual void SetStipple(const wxBitmap& stipple) ;
|
|
|
|
|
2007-12-15 17:54:20 +00:00
|
|
|
bool operator==(const wxBrush& brush) const;
|
|
|
|
bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
|
2004-11-30 18:46:20 +00:00
|
|
|
|
2007-11-23 09:23:54 +00:00
|
|
|
const wxColour& GetColour() const ;
|
2004-12-03 15:31:31 +00:00
|
|
|
virtual int GetStyle() const ;
|
2004-11-30 18:46:20 +00:00
|
|
|
wxBitmap *GetStipple() const ;
|
|
|
|
|
2007-11-23 09:23:54 +00:00
|
|
|
protected:
|
2007-12-15 17:54:20 +00:00
|
|
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
|
|
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
|
|
|
|
2007-03-21 04:29:57 +00:00
|
|
|
private:
|
2007-12-15 17:54:20 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxBrush)
|
2004-03-23 17:35:05 +00:00
|
|
|
};
|
|
|
|
|
2007-12-15 17:54:20 +00:00
|
|
|
#endif // _WX_BRUSH_H_
|