]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/cursor.h
removing NSWindow based mouse tracking in favour of 10.5+ trackingArea implementation
[wxWidgets.git] / include / wx / osx / cursor.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
4dd9fdf8 2// Name: wx/osx/cursor.h
6762286d
SC
3// Purpose: wxCursor class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
15#include "wx/bitmap.h"
16
17// Cursor
18class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
19{
20public:
21 wxCursor();
22
23 wxCursor(const wxImage & image) ;
6762286d
SC
24 wxCursor(const wxString& name,
25 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
26 int hotSpotX = 0, int hotSpotY = 0);
27
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29#if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
5c6eb3a8 31#endif
6762286d
SC
32 virtual ~wxCursor();
33
6762286d
SC
34 void MacInstall() const ;
35
36 void SetHCURSOR(WXHCURSOR cursor);
37 WXHCURSOR GetHCURSOR() const;
38
cff9681b 39protected:
6762286d
SC
40 virtual wxGDIRefData *CreateGDIRefData() const;
41 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
42
cff9681b
PC
43private:
44 void InitFromStock(wxStockCursor);
45
6762286d
SC
46 void CreateFromImage(const wxImage & image) ;
47
48 DECLARE_DYNAMIC_CLASS(wxCursor)
49};
50
51extern WXDLLIMPEXP_CORE void wxSetCursor(const wxCursor& cursor);
52
53#endif // _WX_CURSOR_H_