]>
Commit | Line | Data |
---|---|---|
8cf73271 | 1 | ///////////////////////////////////////////////////////////////////////////// |
1b88201f | 2 | // Name: wx/mac/carbon/cursor.h |
8cf73271 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 | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_CURSOR_H_ | |
13 | #define _WX_CURSOR_H_ | |
14 | ||
8cf73271 SC |
15 | #include "wx/bitmap.h" |
16 | ||
8cf73271 | 17 | // Cursor |
8f884a0d | 18 | class WXDLLEXPORT wxCursor : public wxGDIObject |
8cf73271 | 19 | { |
8cf73271 | 20 | public: |
8f884a0d | 21 | wxCursor(); |
8cf73271 | 22 | |
8f884a0d VZ |
23 | wxCursor(const char bits[], int width, int height, |
24 | int hotSpotX = -1, int hotSpotY = -1, | |
25 | const char maskBits[] = NULL); | |
8cf73271 SC |
26 | |
27 | wxCursor(const wxImage & image) ; | |
28 | wxCursor(const char **bits) ; | |
29 | wxCursor(char **bits) ; | |
30 | wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_MACCURSOR_RESOURCE, | |
8f884a0d | 31 | int hotSpotX = 0, int hotSpotY = 0); |
8cf73271 | 32 | |
8f884a0d VZ |
33 | wxCursor(int cursor_type); |
34 | virtual ~wxCursor(); | |
8cf73271 | 35 | |
8f884a0d | 36 | bool CreateFromXpm(const char **bits) ; |
8cf73271 | 37 | |
8cf73271 SC |
38 | void MacInstall() const ; |
39 | ||
8f884a0d VZ |
40 | void SetHCURSOR(WXHCURSOR cursor); |
41 | WXHCURSOR GetHCURSOR() const; | |
42 | ||
43 | private: | |
44 | virtual wxGDIRefData *CreateGDIRefData() const; | |
45 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
46 | ||
8cf73271 | 47 | void CreateFromImage(const wxImage & image) ; |
8f884a0d VZ |
48 | |
49 | DECLARE_DYNAMIC_CLASS(wxCursor) | |
8cf73271 SC |
50 | }; |
51 | ||
52 | extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor); | |
53 | ||
8f884a0d | 54 | #endif // _WX_CURSOR_H_ |