]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/cursor.h
Return old, not new, selection from wxMSW wxNotebook::ChangeSelection().
[wxWidgets.git] / include / wx / x11 / cursor.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
1b88201f 2// Name: wx/x11/cursor.h
83df96d6
JS
3// Purpose: wxCursor class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
1b88201f 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
8f884a0d 15#include "wx/gdiobj.h"
0d59e263 16#include "wx/gdicmn.h"
f2a0f3a8 17#include "wx/colour.h"
83df96d6 18
8f884a0d 19class WXDLLIMPEXP_FWD_CORE wxImage;
83df96d6 20
a11672a4
RR
21//-----------------------------------------------------------------------------
22// wxCursor
23//-----------------------------------------------------------------------------
83df96d6 24
8f884a0d 25class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
83df96d6 26{
83df96d6
JS
27public:
28 wxCursor();
0ef5b1da
FM
29 wxCursor(wxStockCursor id) { InitFromStock(id); }
30#if WXWIN_COMPATIBILITY_2_8
31 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
32#endif
a11672a4
RR
33#if wxUSE_IMAGE
34 wxCursor( const wxImage & image );
35#endif
8f884a0d 36
0ef5b1da
FM
37 wxCursor(const wxString& name,
38 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
39 int hotSpotX = 0, int hotSpotY = 0);
d3c7fc99 40 virtual ~wxCursor();
a11672a4
RR
41
42 // implementation
43
44 WXCursor GetCursor() const;
45
8f884a0d 46protected:
0ef5b1da
FM
47 void InitFromStock(wxStockCursor);
48
8f884a0d
VZ
49 virtual wxGDIRefData *CreateGDIRefData() const;
50 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
51
a11672a4
RR
52private:
53 DECLARE_DYNAMIC_CLASS(wxCursor)
83df96d6
JS
54};
55
8f884a0d 56#endif // _WX_CURSOR_H_