]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/cursor.h
Somehow, setting a tint color makes gauge work :/.
[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
83df96d6 7// Copyright: (c) Julian Smart
1b88201f 8// Licence: wxWindows licence
83df96d6
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_CURSOR_H_
12#define _WX_CURSOR_H_
13
8f884a0d 14#include "wx/gdiobj.h"
0d59e263 15#include "wx/gdicmn.h"
f2a0f3a8 16#include "wx/colour.h"
83df96d6 17
8f884a0d 18class WXDLLIMPEXP_FWD_CORE wxImage;
83df96d6 19
a11672a4
RR
20//-----------------------------------------------------------------------------
21// wxCursor
22//-----------------------------------------------------------------------------
83df96d6 23
8f884a0d 24class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
83df96d6 25{
83df96d6
JS
26public:
27 wxCursor();
0ef5b1da
FM
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29#if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
31#endif
a11672a4
RR
32#if wxUSE_IMAGE
33 wxCursor( const wxImage & image );
34#endif
8f884a0d 35
0ef5b1da
FM
36 wxCursor(const wxString& name,
37 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
38 int hotSpotX = 0, int hotSpotY = 0);
d3c7fc99 39 virtual ~wxCursor();
a11672a4
RR
40
41 // implementation
42
43 WXCursor GetCursor() const;
44
8f884a0d 45protected:
0ef5b1da
FM
46 void InitFromStock(wxStockCursor);
47
8f884a0d
VZ
48 virtual wxGDIRefData *CreateGDIRefData() const;
49 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
50
a11672a4
RR
51private:
52 DECLARE_DYNAMIC_CLASS(wxCursor)
83df96d6
JS
53};
54
8f884a0d 55#endif // _WX_CURSOR_H_