]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/cursor.h
added support for 2 extra mouse buttons (patch 1757630)
[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
c801d85f 13#include "wx/object.h"
c801d85f 14
b5dbe15d
VS
15class WXDLLIMPEXP_FWD_CORE wxColour;
16class WXDLLIMPEXP_FWD_CORE wxImage;
7eff657c 17
c801d85f
KB
18//-----------------------------------------------------------------------------
19// wxCursor
20//-----------------------------------------------------------------------------
21
20123d49 22class WXDLLIMPEXP_CORE wxCursor: public wxObject
c801d85f 23{
20e05ffb 24public:
c801d85f 25
8bbe427f 26 wxCursor();
debe6624 27 wxCursor( int cursorId );
7eff657c
JS
28#if wxUSE_IMAGE
29 wxCursor( const wxImage & image );
30#endif
a1db952f
VS
31 wxCursor( const char bits[], int width, int height,
32 int hotSpotX=-1, int hotSpotY=-1,
f516d986 33 const char maskBits[] = NULL, const wxColour *fg = NULL, const wxColour *bg = NULL );
d3c7fc99 34 virtual ~wxCursor();
b7cacb43
VZ
35 bool Ok() const { return IsOk(); }
36 bool IsOk() const;
8bbe427f 37
20e05ffb
RR
38 // implementation
39
8bbe427f 40 GdkCursor *GetCursor() const;
c801d85f 41
20e05ffb
RR
42private:
43 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
44};
45
0416c418 46#endif // _WX_GTK_CURSOR_H_