]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/brush.h
Add wxDataViewTextRendererAttr, blind noop under wxMac
[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
ab9d0a8c 21typedef enum
8cf73271 22{
ab9d0a8c
WS
23 kwxMacBrushColour ,
24 kwxMacBrushTheme ,
25 kwxMacBrushThemeBackground
8cf73271
SC
26} wxMacBrushKind ;
27
28// Brush
cb9d5bd0 29class WXDLLEXPORT wxBrush: public wxBrushBase
8cf73271 30{
ab9d0a8c 31 DECLARE_DYNAMIC_CLASS(wxBrush)
8cf73271
SC
32
33public:
ab9d0a8c
WS
34 wxBrush();
35 wxBrush(short macThemeBrush ) ;
36 wxBrush(const wxColour& col, int style = wxSOLID);
37 wxBrush(const wxBitmap& stipple);
d3c7fc99 38 virtual ~wxBrush();
ab9d0a8c 39
46562151 40 virtual void SetColour(const wxColour& col) ;
1a1498c0 41 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
ab9d0a8c
WS
42 virtual void SetStyle(int style) ;
43 virtual void SetStipple(const wxBitmap& stipple) ;
44 virtual void MacSetTheme(short macThemeBrush) ;
45 virtual void MacSetThemeBackground(unsigned long macThemeBackground , WXRECTPTR extent) ;
46
55ccdb93 47 bool operator == (const wxBrush& brush) const;
fbfb8bcc 48 bool operator != (const wxBrush& brush) const
55ccdb93 49 { return !(*this == brush); }
ab9d0a8c
WS
50
51 wxMacBrushKind MacGetBrushKind() const ;
52
53 unsigned long MacGetThemeBackground(WXRECTPTR extent) const ;
54 short MacGetTheme() const ;
55 wxColour& GetColour() const ;
cb9d5bd0 56 virtual int GetStyle() const ;
ab9d0a8c
WS
57 wxBitmap *GetStipple() const ;
58
b7cacb43
VZ
59 virtual bool Ok() const { return IsOk(); }
60 virtual bool IsOk() const { return (m_refData != NULL) ; }
8cf73271
SC
61
62// Implementation
63
ab9d0a8c
WS
64 // Useful helper: create the brush resource
65 bool RealizeResource();
8cf73271 66
83dcd781
PC
67private:
68 void Unshare();
8cf73271
SC
69};
70
71#endif
72 // _WX_BRUSH_H_