]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/cursor.h
use wxString for wxXmlResource::Set/GetDomain(), it's simpler
[wxWidgets.git] / include / wx / mgl / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cursor.h
3 // Purpose:
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __WX_CURSOR_H__
11 #define __WX_CURSOR_H__
12
13 #include "wx/defs.h"
14 #include "wx/object.h"
15 #include "wx/gdicmn.h"
16
17 class MGLCursor;
18
19 //-----------------------------------------------------------------------------
20 // wxCursor
21 //-----------------------------------------------------------------------------
22
23 class WXDLLEXPORT wxCursor: public wxObject
24 {
25 public:
26
27 wxCursor();
28 wxCursor(int cursorId);
29 wxCursor(const char bits[], int width, int height,
30 int hotSpotX=-1, int hotSpotY=-1,
31 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
32 wxCursor(const wxString& name,
33 long flags = wxBITMAP_TYPE_CUR_RESOURCE,
34 int hotSpotX = 0, int hotSpotY = 0);
35 virtual ~wxCursor();
36 bool Ok() const { return IsOk(); }
37 bool IsOk() const;
38
39 // implementation
40 MGLCursor *GetMGLCursor() const;
41
42 private:
43 DECLARE_DYNAMIC_CLASS(wxCursor)
44 };
45
46 #endif // __WX_CURSOR_H__