]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/x11/cursor.h
First part of '[ 1216148 ] cleanup: unused variables and declarations'.
[wxWidgets.git] / include / wx / x11 / cursor.h
... / ...
CommitLineData
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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CURSOR_H_
13#define _WX_CURSOR_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "cursor.h"
17#endif
18
19#include "wx/bitmap.h"
20
21#if wxUSE_IMAGE
22#include "wx/image.h"
23#endif
24
25//-----------------------------------------------------------------------------
26// wxCursor
27//-----------------------------------------------------------------------------
28
29class wxCursor: public wxObject
30{
31public:
32
33 wxCursor();
34 wxCursor( int cursorId );
35 wxCursor( const wxCursor &cursor );
36#if wxUSE_IMAGE
37 wxCursor( const wxImage & image );
38#endif
39 wxCursor( const char bits[], int width, int height,
40 int hotSpotX=-1, int hotSpotY=-1,
41 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
42 ~wxCursor();
43 wxCursor& operator = ( const wxCursor& cursor );
44 bool operator == ( const wxCursor& cursor ) const;
45 bool operator != ( const wxCursor& cursor ) const;
46 bool Ok() const;
47
48 // implementation
49
50 WXCursor GetCursor() const;
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxCursor)
54};
55
56
57#endif
58// _WX_CURSOR_H_