]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/cursor.h
fixed memory leak in wxXmlResource introduced when fixing wxVector<> usage (patch...
[wxWidgets.git] / include / wx / mgl / cursor.h
... / ...
CommitLineData
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/gdiobj.h"
14#include "wx/gdicmn.h"
15
16class MGLCursor;
17
18//-----------------------------------------------------------------------------
19// wxCursor
20//-----------------------------------------------------------------------------
21
22class WXDLLEXPORT wxCursor : public wxGDIObject
23{
24public:
25
26 wxCursor();
27 wxCursor(int cursorId);
28 wxCursor(const char bits[], int width, int height,
29 int hotSpotX=-1, int hotSpotY=-1,
30 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
31 wxCursor(const wxString& name,
32 long flags = wxBITMAP_TYPE_CUR_RESOURCE,
33 int hotSpotX = 0, int hotSpotY = 0);
34 virtual ~wxCursor();
35
36 // implementation
37 MGLCursor *GetMGLCursor() const;
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxCursor)
41};
42
43#endif // __WX_CURSOR_H__