]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/cursor.h
Fix crash when editing wxDVC items in place in wxOSX/Cocoa.
[wxWidgets.git] / include / wx / msw / cursor.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
6d167489 2// Name: wx/msw/cursor.h
2bda0e17
KB
3// Purpose: wxCursor class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
2bda0e17 14
c781807d 15#include "wx/msw/gdiimage.h"
6d167489 16
b5dbe15d 17class WXDLLIMPEXP_FWD_CORE wxImage;
4a38127b 18
2bda0e17 19// Cursor
53a2db12 20class WXDLLIMPEXP_CORE wxCursor : public wxGDIImage
2bda0e17 21{
2bda0e17 22public:
eff4ffbf 23 // constructors
6d167489 24 wxCursor();
c781807d 25 wxCursor(const wxImage& image);
6d167489 26 wxCursor(const wxString& name,
0ef5b1da 27 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
6d167489 28 int hotSpotX = 0, int hotSpotY = 0);
0ef5b1da
FM
29 wxCursor(wxStockCursor id) { InitFromStock(id); }
30#if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
32#endif
6d167489 33 virtual ~wxCursor();
2bda0e17 34
eff4ffbf 35 // implementation only
6d167489
VZ
36 void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
37 WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
2bda0e17 38
6d167489 39protected:
0ef5b1da
FM
40 void InitFromStock(wxStockCursor);
41
eff4ffbf 42 virtual wxGDIImageRefData *CreateData() const;
2bda0e17 43
6d167489
VZ
44private:
45 DECLARE_DYNAMIC_CLASS(wxCursor)
2bda0e17
KB
46};
47
48#endif
bbcdf8bc 49 // _WX_CURSOR_H_