]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/cursor.h
Last part from weak ref patch for event sink disconnection
[wxWidgets.git] / include / wx / x11 / cursor.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
1b88201f 2// Name: wx/x11/cursor.h
83df96d6
JS
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
1b88201f 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
8f884a0d 15#include "wx/gdiobj.h"
83df96d6 16
8f884a0d 17class WXDLLIMPEXP_FWD_CORE wxImage;
83df96d6 18
a11672a4
RR
19//-----------------------------------------------------------------------------
20// wxCursor
21//-----------------------------------------------------------------------------
83df96d6 22
8f884a0d 23class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
83df96d6 24{
83df96d6
JS
25public:
26 wxCursor();
a11672a4 27 wxCursor( int cursorId );
a11672a4
RR
28#if wxUSE_IMAGE
29 wxCursor( const wxImage & image );
30#endif
8f884a0d 31
a11672a4
RR
32 wxCursor( const char bits[], int width, int height,
33 int hotSpotX=-1, int hotSpotY=-1,
34 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
d3c7fc99 35 virtual ~wxCursor();
a11672a4
RR
36
37 // implementation
38
39 WXCursor GetCursor() const;
40
8f884a0d
VZ
41protected:
42 virtual wxGDIRefData *CreateGDIRefData() const;
43 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
44
a11672a4
RR
45private:
46 DECLARE_DYNAMIC_CLASS(wxCursor)
83df96d6
JS
47};
48
8f884a0d 49#endif // _WX_CURSOR_H_