]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/cursor.h
Use C, not C++, comments in wx/gtk/chkconf.h.
[wxWidgets.git] / include / wx / gtk / cursor.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/gtk/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
0416c418
PC
10#ifndef _WX_GTK_CURSOR_H_
11#define _WX_GTK_CURSOR_H_
c801d85f 12
8f884a0d 13#include "wx/gdiobj.h"
f4efd805 14#include "wx/gdicmn.h"
c801d85f 15
b5dbe15d
VS
16class WXDLLIMPEXP_FWD_CORE wxColour;
17class WXDLLIMPEXP_FWD_CORE wxImage;
7eff657c 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 );
d6764050
FM
33 wxCursor(const wxString& name,
34 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
35 int hotSpotX = 0, int hotSpotY = 0);
7eff657c 36#endif
f4efd805
FM
37 wxCursor( const char bits[], int width, int height,
38 int hotSpotX = -1, int hotSpotY = -1,
8f884a0d 39 const char maskBits[] = NULL,
f4efd805 40 const wxColour* fg = NULL, const wxColour* bg = NULL);
d3c7fc99 41 virtual ~wxCursor();
8bbe427f 42
20e05ffb
RR
43 // implementation
44
8bbe427f 45 GdkCursor *GetCursor() const;
c801d85f 46
8f884a0d 47protected:
0ef5b1da 48 void InitFromStock(wxStockCursor);
d6764050
FM
49#if wxUSE_IMAGE
50 void InitFromImage(const wxImage& image);
51#endif
0ef5b1da 52
8f884a0d
VZ
53 virtual wxGDIRefData *CreateGDIRefData() const;
54 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
55
20e05ffb
RR
56private:
57 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
58};
59
0416c418 60#endif // _WX_GTK_CURSOR_H_