]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/cursor.h
wxSizeEvent now carries the total size, not just the client size
[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
8bbe427f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKCURSORH__
12#define __GTKCURSORH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/gdicmn.h"
21
7eff657c
JS
22#if wxUSE_IMAGE
23#include "wx/image.h"
24#endif
25
c801d85f
KB
26//-----------------------------------------------------------------------------
27// wxCursor
28//-----------------------------------------------------------------------------
29
30class wxCursor: public wxObject
31{
20e05ffb 32public:
c801d85f 33
8bbe427f 34 wxCursor();
debe6624 35 wxCursor( int cursorId );
c801d85f 36 wxCursor( const wxCursor &cursor );
7eff657c
JS
37#if wxUSE_IMAGE
38 wxCursor( const wxImage & image );
39#endif
a1db952f
VS
40 wxCursor( const char bits[], int width, int height,
41 int hotSpotX=-1, int hotSpotY=-1,
42 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
8bbe427f 43 ~wxCursor();
c801d85f 44 wxCursor& operator = ( const wxCursor& cursor );
8bbe427f
VZ
45 bool operator == ( const wxCursor& cursor ) const;
46 bool operator != ( const wxCursor& cursor ) const;
47 bool Ok() const;
48
20e05ffb
RR
49 // implementation
50
8bbe427f 51 GdkCursor *GetCursor() const;
c801d85f 52
20e05ffb
RR
53private:
54 DECLARE_DYNAMIC_CLASS(wxCursor)
c801d85f
KB
55};
56
57#endif // __GTKCURSORH__