]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/cursor.h
fixed unused parameter warning
[wxWidgets.git] / include / wx / motif / cursor.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: cursor.h
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
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
93e73c74
MB
15#include "wx/object.h"
16#include "wx/gdicmn.h"
9b6dbb09 17
93e73c74 18class WXDLLEXPORT wxImage;
9b6dbb09
JS
19
20// Cursor
93e73c74 21class WXDLLEXPORT wxCursor: public wxObject
9b6dbb09 22{
83df96d6
JS
23 DECLARE_DYNAMIC_CLASS(wxCursor)
24
9b6dbb09 25public:
83df96d6 26 wxCursor();
f8855e47 27
ffa3d6b8
MB
28 wxCursor(const char bits[], int width, int height,
29 int hotSpotX = -1, int hotSpotY = -1,
30 const char maskBits[] = NULL);
83df96d6
JS
31
32 wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_XBM,
33 int hotSpotX = 0, int hotSpotY = 0);
4daa4d66
CE
34
35#if wxUSE_IMAGE
36 wxCursor(const wxImage& image);
37#endif
38
83df96d6
JS
39 wxCursor(wxStockCursor id);
40 ~wxCursor();
41
93e73c74 42 virtual bool Ok() const;
83df96d6 43
93e73c74
MB
44 bool operator == (const wxCursor& cursor) const
45 { return m_refData == cursor.m_refData; }
46 bool operator != (const wxCursor& cursor) const
47 { return m_refData != cursor.m_refData; }
48
83df96d6
JS
49 // Motif-specific.
50 // Create/get a cursor for the current display
bc6e28d5 51 WXCursor GetXCursor(WXDisplay* display) const;
93e73c74 52private:
ffa3d6b8
MB
53 void Create(const char bits[], int width, int height,
54 int hotSpotX = -1, int hotSpotY = -1,
55 const char maskBits[] = NULL);
56 void Create(WXPixmap cursor, WXPixmap mask, int hotSpotX, int hotSpotY);
57
83df96d6 58 // Make a cursor from standard id
bc6e28d5 59 WXCursor MakeCursor(WXDisplay* display, wxStockCursor id) const;
9b6dbb09
JS
60};
61
62extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor);
63
64#endif
83df96d6 65// _WX_CURSOR_H_