]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/cursor.h
Make wxRichTextCtrl again buildable on WinCE.
[wxWidgets.git] / include / wx / palmos / cursor.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/cursor.h
3// Purpose: wxCursor class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
ffecfa5a
JS
15#include "wx/palmos/gdiimage.h"
16
17class WXDLLEXPORT wxImage;
18
19// Cursor
20class WXDLLEXPORT wxCursor : public wxGDIImage
21{
22public:
23 // constructors
24 wxCursor();
ffecfa5a
JS
25 wxCursor(const wxImage& image);
26 wxCursor(const char bits[], int width, int height,
27 int hotSpotX = -1, int hotSpotY = -1,
28 const char maskBits[] = NULL);
29 wxCursor(const wxString& name,
30 long flags = wxBITMAP_TYPE_CUR_RESOURCE,
31 int hotSpotX = 0, int hotSpotY = 0);
32 wxCursor(int idCursor);
33 virtual ~wxCursor();
34
ffecfa5a
JS
35 bool operator==(const wxCursor& cursor) const;
36 bool operator!=(const wxCursor& cursor) const
37 { return !(*this == cursor); }
38
39 // implementation only
40 void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
41 WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
42
43protected:
44 virtual wxGDIImageRefData *CreateData() const;
45
46private:
47 DECLARE_DYNAMIC_CLASS(wxCursor)
48};
49
50#endif
51 // _WX_CURSOR_H_