]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/cursor.h
add size parameter to the generic wxFileDialog ctor
[wxWidgets.git] / include / wx / gtk / cursor.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: cursor.h
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 );
33#endif
f4efd805
FM
34 wxCursor( const char bits[], int width, int height,
35 int hotSpotX = -1, int hotSpotY = -1,
8f884a0d 36 const char maskBits[] = NULL,
f4efd805 37 const wxColour* fg = NULL, const wxColour* bg = NULL);
0ef5b1da
FM
38 wxCursor(const wxString& name,
39 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
40 int hotSpotX = 0, int hotSpotY = 0);
d3c7fc99 41 virtual ~wxCursor();
8bbe427f 42
20e05ffb
RR
43 // implementation
44
8bbe427f 45 GdkCursor *GetCursor() const;
c801d85f 46
8f884a0d 47protected:
0ef5b1da
FM
48 void InitFromStock(wxStockCursor);
49
8f884a0d
VZ
50 virtual wxGDIRefData *CreateGDIRefData() const;
51 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
52
20e05ffb
RR
53private:
54 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
55};
56
0416c418 57#endif // _WX_GTK_CURSOR_H_