]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/cursor.h
Instead of just deleting m_popupInterface, call Destroy() of its wxWindow-based popup...
[wxWidgets.git] / include / wx / gtk / cursor.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/cursor.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTK_CURSOR_H_
11#define _WX_GTK_CURSOR_H_
12
13#include "wx/gdiobj.h"
14#include "wx/gdicmn.h"
15
16class WXDLLIMPEXP_FWD_CORE wxColour;
17class WXDLLIMPEXP_FWD_CORE wxImage;
18
19//-----------------------------------------------------------------------------
20// wxCursor
21//-----------------------------------------------------------------------------
22
23class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
24{
25public:
26 wxCursor();
27 wxCursor(wxStockCursor id) { InitFromStock(id); }
28#if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
30#endif
31#if wxUSE_IMAGE
32 wxCursor( const wxImage & image );
33 wxCursor(const wxString& name,
34 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
35 int hotSpotX = 0, int hotSpotY = 0);
36#endif
37 wxCursor( const char bits[], int width, int height,
38 int hotSpotX = -1, int hotSpotY = -1,
39 const char maskBits[] = NULL,
40 const wxColour* fg = NULL, const wxColour* bg = NULL);
41 virtual ~wxCursor();
42
43 // implementation
44
45 GdkCursor *GetCursor() const;
46
47protected:
48 void InitFromStock(wxStockCursor);
49#if wxUSE_IMAGE
50 void InitFromImage(const wxImage& image);
51#endif
52
53 virtual wxGDIRefData *CreateGDIRefData() const;
54 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
55
56private:
57 DECLARE_DYNAMIC_CLASS(wxCursor)
58};
59
60#endif // _WX_GTK_CURSOR_H_