]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/cursor.h
Clear columns on destruction
[wxWidgets.git] / include / wx / mac / carbon / cursor.h
CommitLineData
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
53a2db12 18class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
8cf73271 19{
8cf73271 20public:
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) ;
e45080c1 28 wxCursor(const char* const* bits);
8cf73271 29 wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_MACCURSOR_RESOURCE,
8f884a0d 30 int hotSpotX = 0, int hotSpotY = 0);
8cf73271 31
8f884a0d
VZ
32 wxCursor(int cursor_type);
33 virtual ~wxCursor();
8cf73271 34
e45080c1 35 bool CreateFromXpm(const char* const* bits);
8cf73271 36
8cf73271
SC
37 void MacInstall() const ;
38
8f884a0d
VZ
39 void SetHCURSOR(WXHCURSOR cursor);
40 WXHCURSOR GetHCURSOR() const;
41
42private:
43 virtual wxGDIRefData *CreateGDIRefData() const;
44 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
45
8cf73271 46 void CreateFromImage(const wxImage & image) ;
8f884a0d
VZ
47
48 DECLARE_DYNAMIC_CLASS(wxCursor)
8cf73271
SC
49};
50
53a2db12 51extern WXDLLIMPEXP_CORE void wxSetCursor(const wxCursor& cursor);
8cf73271 52
8f884a0d 53#endif // _WX_CURSOR_H_