]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/cursor.h
synchronize GTK2 minimum version in docs
[wxWidgets.git] / include / wx / gtk1 / cursor.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/cursor.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
dbf858b5
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKCURSORH__
11#define __GTKCURSORH__
12
8f884a0d 13#include "wx/gdiobj.h"
c801d85f
KB
14#include "wx/gdicmn.h"
15
7eff657c
JS
16#if wxUSE_IMAGE
17#include "wx/image.h"
18#endif
19
c801d85f
KB
20//-----------------------------------------------------------------------------
21// wxCursor
22//-----------------------------------------------------------------------------
23
8f884a0d 24class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
c801d85f 25{
20e05ffb 26public:
8bbe427f 27 wxCursor();
0ef5b1da
FM
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29#if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
31#endif
7eff657c
JS
32#if wxUSE_IMAGE
33 wxCursor( const wxImage & image );
34#endif
a1db952f
VS
35 wxCursor( const char bits[], int width, int height,
36 int hotSpotX=-1, int hotSpotY=-1,
0ef5b1da
FM
37 const char maskBits[] = NULL,
38 const wxColour* fg = NULL, const wxColour* bg = NULL);
39
40 /* WARNING: the following ctor is missing:
41
42 wxCursor(const wxString& name,
43 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
44 int hotSpotX = 0, int hotSpotY = 0);
45 */
46
d3c7fc99 47 virtual ~wxCursor();
8bbe427f 48
20e05ffb
RR
49 // implementation
50
8bbe427f 51 GdkCursor *GetCursor() const;
c801d85f 52
8f884a0d 53protected:
0ef5b1da
FM
54 void InitFromStock(wxStockCursor);
55
8f884a0d
VZ
56 virtual wxGDIRefData *CreateGDIRefData() const;
57 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
58
20e05ffb
RR
59private:
60 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
61};
62
63#endif // __GTKCURSORH__