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