]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/cursor.h
testing header replace
[wxWidgets.git] / include / wx / dfb / cursor.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/cursor.h
3// Purpose: wxCursor declaration
4// Author: Vaclav Slavik
5// Created: 2006-08-08
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_CURSOR_H_
12#define _WX_DFB_CURSOR_H_
13
8f884a0d 14#include "wx/gdiobj.h"
b3c86150
VS
15#include "wx/gdicmn.h"
16
b5dbe15d 17class WXDLLIMPEXP_FWD_CORE wxBitmap;
b3c86150
VS
18
19//-----------------------------------------------------------------------------
20// wxCursor
21//-----------------------------------------------------------------------------
22
8f884a0d 23class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
b3c86150
VS
24{
25public:
26 wxCursor() {}
0ef5b1da
FM
27 wxCursor(wxStockCursor id) { InitFromStock(id); }
28#if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
30#endif
b3c86150 31 wxCursor(const wxString& name,
0ef5b1da 32 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
b3c86150
VS
33 int hotSpotX = 0, int hotSpotY = 0);
34
b3c86150
VS
35 // implementation
36 wxBitmap GetBitmap() const;
37
38protected:
0ef5b1da
FM
39 void InitFromStock(wxStockCursor);
40
b3c86150 41 // ref counting code
8f884a0d
VZ
42 virtual wxGDIRefData *CreateGDIRefData() const;
43 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
b3c86150
VS
44
45 DECLARE_DYNAMIC_CLASS(wxCursor)
46};
47
48#endif // _WX_DFB_CURSOR_H_