]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/cursor.h
Typo fixes
[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
SC
17// Cursor
18class WXDLLEXPORT wxCursor: public wxBitmap
19{
20 DECLARE_DYNAMIC_CLASS(wxCursor)
21
22public:
23 wxCursor();
24
8cf73271
SC
25 wxCursor(const char bits[], int width, int height, int hotSpotX = -1, int hotSpotY = -1,
26 const char maskBits[] = NULL);
27
28 wxCursor(const wxImage & image) ;
29 wxCursor(const char **bits) ;
30 wxCursor(char **bits) ;
31 wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_MACCURSOR_RESOURCE,
32 int hotSpotX = 0, int hotSpotY = 0);
33
34 wxCursor(int cursor_type);
d3c7fc99 35 virtual ~wxCursor();
8cf73271 36
1b88201f 37 bool CreateFromXpm(const char **bits) ;
b7cacb43
VZ
38 virtual bool Ok() const { return IsOk(); }
39 virtual bool IsOk() const ;
8cf73271 40
64631e82
SC
41 inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; }
42 inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }
8cf73271
SC
43
44 void MacInstall() const ;
45
46 void SetHCURSOR(WXHCURSOR cursor);
20b69855 47 inline WXHCURSOR GetHCURSOR() const ;
8cf73271
SC
48private :
49 void CreateFromImage(const wxImage & image) ;
50};
51
52extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor);
53
54#endif
55 // _WX_CURSOR_H_