]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/cursor.h
Fix Ok/IsOk() mess in wxGDIObject-derived classes; also added
[wxWidgets.git] / include / wx / gtk1 / cursor.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/cursor.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKCURSORH__
11#define __GTKCURSORH__
12
8f884a0d 13#include "wx/gdiobj.h"
c801d85f
KB
14#include "wx/gdicmn.h"
15
7eff657c
JS
16#if wxUSE_IMAGE
17#include "wx/image.h"
18#endif
19
c801d85f
KB
20//-----------------------------------------------------------------------------
21// wxCursor
22//-----------------------------------------------------------------------------
23
8f884a0d 24class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
c801d85f 25{
20e05ffb 26public:
8bbe427f 27 wxCursor();
debe6624 28 wxCursor( int cursorId );
7eff657c
JS
29#if wxUSE_IMAGE
30 wxCursor( const wxImage & image );
31#endif
a1db952f
VS
32 wxCursor( const char bits[], int width, int height,
33 int hotSpotX=-1, int hotSpotY=-1,
f516d986 34 const char maskBits[] = NULL, const wxColour *fg = NULL, const wxColour *bg = NULL );
d3c7fc99 35 virtual ~wxCursor();
8bbe427f 36
20e05ffb
RR
37 // implementation
38
8bbe427f 39 GdkCursor *GetCursor() const;
c801d85f 40
8f884a0d
VZ
41protected:
42 virtual wxGDIRefData *CreateGDIRefData() const;
43 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
44
20e05ffb
RR
45private:
46 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
47};
48
49#endif // __GTKCURSORH__