]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/cursor.h
Some wxComboCtrlBase member functions were enclosed within incorrect compatibility...
[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
b5dbe15d 17class WXDLLIMPEXP_FWD_CORE wxImage;
ffecfa5a
JS
18
19// Cursor
53a2db12 20class WXDLLIMPEXP_CORE wxCursor : public wxGDIImage
ffecfa5a
JS
21{
22public:
23 // constructors
24 wxCursor();
ffecfa5a 25 wxCursor(const wxImage& image);
ffecfa5a 26 wxCursor(const wxString& name,
0ef5b1da 27 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
ffecfa5a 28 int hotSpotX = 0, int hotSpotY = 0);
0ef5b1da
FM
29 wxCursor(wxStockCursor id) { InitFromStock(id); }
30#if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
32#endif
ffecfa5a
JS
33 virtual ~wxCursor();
34
ffecfa5a
JS
35 // implementation only
36 void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
37 WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
38
39protected:
0ef5b1da 40 void InitFromStock(wxStockCursor);
ffecfa5a
JS
41 virtual wxGDIImageRefData *CreateData() const;
42
43private:
44 DECLARE_DYNAMIC_CLASS(wxCursor)
45};
46
47#endif
48 // _WX_CURSOR_H_