]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/brush.h
process one event at once in wxEvtHandler::ProcessPendingEvents() to prevent crashes...
[wxWidgets.git] / include / wx / palmos / brush.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/brush.h
3// Purpose: wxBrush class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BRUSH_H_
13#define _WX_BRUSH_H_
14
ffecfa5a
JS
15#include "wx/gdicmn.h"
16#include "wx/gdiobj.h"
17#include "wx/bitmap.h"
18
b5dbe15d 19class WXDLLIMPEXP_FWD_CORE wxBrush;
ffecfa5a
JS
20
21// ----------------------------------------------------------------------------
22// wxBrush
23// ----------------------------------------------------------------------------
24
cb9d5bd0 25class WXDLLEXPORT wxBrush : public wxBrushBase
ffecfa5a
JS
26{
27public:
28 wxBrush();
29 wxBrush(const wxColour& col, int style = wxSOLID);
30 wxBrush(const wxBitmap& stipple);
ffecfa5a
JS
31 virtual ~wxBrush();
32
33 virtual void SetColour(const wxColour& col);
1a1498c0 34 virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
ffecfa5a
JS
35 virtual void SetStyle(int style);
36 virtual void SetStipple(const wxBitmap& stipple);
37
ffecfa5a
JS
38 bool operator==(const wxBrush& brush) const;
39 bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
40
41 wxColour GetColour() const;
cb9d5bd0 42 virtual int GetStyle() const;
ffecfa5a
JS
43 wxBitmap *GetStipple() const;
44
ffecfa5a
JS
45 // return the HBRUSH for this brush
46 virtual WXHANDLE GetResourceHandle() const;
47
48protected:
8f884a0d
VZ
49 virtual wxGDIRefData *CreateGDIRefData() const;
50 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
ffecfa5a
JS
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxBrush)
54};
55
8f884a0d 56#endif // _WX_BRUSH_H_