]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/brush.h
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / include / wx / mac / carbon / brush.h
CommitLineData
8cf73271 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/mac/carbon/brush.h
8cf73271
SC
3// Purpose: wxBrush class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
8cf73271
SC
15#include "wx/gdicmn.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
b5dbe15d 19class WXDLLIMPEXP_FWD_CORE wxBrush;
8cf73271 20
8cf73271 21// Brush
cb9d5bd0 22class WXDLLEXPORT wxBrush: public wxBrushBase
8cf73271 23{
850df2d7 24 public:
ab9d0a8c
WS
25 wxBrush();
26 wxBrush(short macThemeBrush ) ;
27 wxBrush(const wxColour& col, int style = wxSOLID);
28 wxBrush(const wxBitmap& stipple);
d3c7fc99 29 virtual ~wxBrush();
ab9d0a8c 30
46562151 31 virtual void SetColour(const wxColour& col) ;
1a1498c0 32 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
ab9d0a8c
WS
33 virtual void SetStyle(int style) ;
34 virtual void SetStipple(const wxBitmap& stipple) ;
ab9d0a8c 35
55ccdb93 36 bool operator == (const wxBrush& brush) const;
fbfb8bcc 37 bool operator != (const wxBrush& brush) const
55ccdb93 38 { return !(*this == brush); }
ab9d0a8c 39
850df2d7 40 const wxColour& GetColour() const ;
cb9d5bd0 41 virtual int GetStyle() const ;
ab9d0a8c
WS
42 wxBitmap *GetStipple() const ;
43
b7cacb43
VZ
44 virtual bool Ok() const { return IsOk(); }
45 virtual bool IsOk() const { return (m_refData != NULL) ; }
8cf73271 46
850df2d7
SC
47protected:
48 virtual wxObjectRefData *CreateRefData() const;
49 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
83dcd781 50private:
850df2d7 51 DECLARE_DYNAMIC_CLASS(wxBrush)
8cf73271
SC
52};
53
54#endif
55 // _WX_BRUSH_H_