]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/cursor.h
avoiding crash for pure modifier events
[wxWidgets.git] / include / wx / gtk / cursor.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: cursor.h
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
0416c418
PC
10#ifndef _WX_GTK_CURSOR_H_
11#define _WX_GTK_CURSOR_H_
c801d85f 12
8f884a0d 13#include "wx/gdiobj.h"
c801d85f 14
b5dbe15d
VS
15class WXDLLIMPEXP_FWD_CORE wxColour;
16class WXDLLIMPEXP_FWD_CORE wxImage;
7eff657c 17
6869b469
FM
18enum wxStockCursor;
19
c801d85f
KB
20//-----------------------------------------------------------------------------
21// wxCursor
22//-----------------------------------------------------------------------------
23
8f884a0d 24class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
c801d85f 25{
20e05ffb 26public:
8bbe427f 27 wxCursor();
d4f392ea 28 wxCursor( wxStockCursor 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,
8f884a0d
VZ
34 const char maskBits[] = NULL,
35 const wxColour *fg = NULL, const wxColour *bg = NULL );
d3c7fc99 36 virtual ~wxCursor();
8bbe427f 37
20e05ffb
RR
38 // implementation
39
8bbe427f 40 GdkCursor *GetCursor() const;
c801d85f 41
8f884a0d
VZ
42protected:
43 virtual wxGDIRefData *CreateGDIRefData() const;
44 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
45
20e05ffb
RR
46private:
47 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
48};
49
0416c418 50#endif // _WX_GTK_CURSOR_H_