]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/cursor.h
define wxEventLoopBase::ms_activeLoop in appcmn.cpp instead of doing it in all platfo...
[wxWidgets.git] / include / wx / x11 / cursor.h
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: cursor.h
3// Purpose: wxCursor class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
83df96d6
JS
15#include "wx/bitmap.h"
16
a11672a4
RR
17#if wxUSE_IMAGE
18#include "wx/image.h"
19#endif
83df96d6 20
a11672a4
RR
21//-----------------------------------------------------------------------------
22// wxCursor
23//-----------------------------------------------------------------------------
83df96d6 24
968eb2ef 25class WXDLLIMPEXP_CORE wxCursor: public wxObject
83df96d6 26{
83df96d6 27public:
a11672a4 28
83df96d6 29 wxCursor();
a11672a4
RR
30 wxCursor( int cursorId );
31 wxCursor( const wxCursor &cursor );
32#if wxUSE_IMAGE
33 wxCursor( const wxImage & image );
34#endif
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 );
83df96d6 38 ~wxCursor();
a11672a4
RR
39 wxCursor& operator = ( const wxCursor& cursor );
40 bool operator == ( const wxCursor& cursor ) const;
41 bool operator != ( const wxCursor& cursor ) const;
42 bool Ok() const;
43
44 // implementation
45
46 WXCursor GetCursor() const;
47
48private:
49 DECLARE_DYNAMIC_CLASS(wxCursor)
83df96d6
JS
50};
51
83df96d6
JS
52
53#endif
54// _WX_CURSOR_H_