]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/cursor.h
add MutexGuiEnter/Leave to wxAppTraits, integrate native GTK+ GUI locking
[wxWidgets.git] / include / wx / gtk / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cursor.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_CURSOR_H_
11 #define _WX_GTK_CURSOR_H_
12
13 #include "wx/gdiobj.h"
14
15 class WXDLLIMPEXP_FWD_CORE wxColour;
16 class WXDLLIMPEXP_FWD_CORE wxImage;
17
18 //-----------------------------------------------------------------------------
19 // wxCursor
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
23 {
24 public:
25 wxCursor();
26 wxCursor( int cursorId );
27 #if wxUSE_IMAGE
28 wxCursor( const wxImage & image );
29 #endif
30 wxCursor( const char bits[], int width, int height,
31 int hotSpotX=-1, int hotSpotY=-1,
32 const char maskBits[] = NULL,
33 const wxColour *fg = NULL, const wxColour *bg = NULL );
34 virtual ~wxCursor();
35
36 // implementation
37
38 GdkCursor *GetCursor() const;
39
40 protected:
41 virtual wxGDIRefData *CreateGDIRefData() const;
42 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
43
44 private:
45 DECLARE_DYNAMIC_CLASS(wxCursor)
46 };
47
48 #endif // _WX_GTK_CURSOR_H_