]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/cursor.h
deprecate wxStringEq
[wxWidgets.git] / include / wx / osx / carbon / cursor.h
CommitLineData
5c6eb3a8
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mac/carbon/cursor.h
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
5c6eb3a8
SC
23 wxCursor(const wxImage & image) ;
24 wxCursor(const char* const* bits);
25 wxCursor(const wxString& name,
0ef5b1da 26 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
5c6eb3a8
SC
27 int hotSpotX = 0, int hotSpotY = 0);
28
0ef5b1da
FM
29 wxCursor(wxStockCursor id) { InitFromStock(id); }
30#if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
32#endif
5c6eb3a8
SC
33 virtual ~wxCursor();
34
35 bool CreateFromXpm(const char* const* bits);
36
37 void MacInstall() const ;
38
39 void SetHCURSOR(WXHCURSOR cursor);
40 WXHCURSOR GetHCURSOR() const;
41
42private:
0ef5b1da
FM
43 void InitFromStock(wxStockCursor);
44
5c6eb3a8
SC
45 virtual wxGDIRefData *CreateGDIRefData() const;
46 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
47
48 void CreateFromImage(const wxImage & image) ;
49
50 DECLARE_DYNAMIC_CLASS(wxCursor)
51};
52
53extern WXDLLIMPEXP_CORE void wxSetCursor(const wxCursor& cursor);
54
55#endif // _WX_CURSOR_H_