]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/cursor.h
pragma fix for gcc
[wxWidgets.git] / include / wx / mgl / cursor.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: cursor.h
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
8f7b34a8 6// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
32b8ec41
VZ
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __WX_CURSOR_H__
12#define __WX_CURSOR_H__
13
14#ifdef __GNUG__
15#pragma interface "cursor.h"
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/gdicmn.h"
21
22class MGLCursor;
23
24//-----------------------------------------------------------------------------
25// wxCursor
26//-----------------------------------------------------------------------------
27
28class WXDLLEXPORT wxCursor: public wxObject
29{
30public:
31
32 wxCursor();
33 wxCursor(int cursorId);
34 wxCursor(const wxCursor &cursor);
35 wxCursor(const char bits[], int width, int height,
36 int hotSpotX=-1, int hotSpotY=-1,
37 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
38 wxCursor(const wxString& name,
39 long flags = wxBITMAP_TYPE_CUR_RESOURCE,
40 int hotSpotX = 0, int hotSpotY = 0);
41 ~wxCursor();
42 wxCursor& operator = ( const wxCursor& cursor );
43 bool operator == (const wxCursor& cursor) const;
44 bool operator != (const wxCursor& cursor) const;
45 bool Ok() const;
46
47 // implementation
48 MGLCursor *GetMGLCursor() const;
49
50private:
51 DECLARE_DYNAMIC_CLASS(wxCursor)
52};
53
54#endif // __WX_CURSOR_H__