]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/cursor.h
Add class factories for filter streams. Also filters now follow the convention
[wxWidgets.git] / include / wx / gtk1 / cursor.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk1/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 __GTKCURSORH__
11#define __GTKCURSORH__
12
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/gdicmn.h"
16
17#if wxUSE_IMAGE
18#include "wx/image.h"
19#endif
20
21//-----------------------------------------------------------------------------
22// wxCursor
23//-----------------------------------------------------------------------------
24
25class WXDLLIMPEXP_CORE wxCursor: public wxObject
26{
27public:
28
29 wxCursor();
30 wxCursor( int cursorId );
31#if wxUSE_IMAGE
32 wxCursor( const wxImage & image );
33#endif
34 wxCursor( const char bits[], int width, int height,
35 int hotSpotX=-1, int hotSpotY=-1,
36 const char maskBits[] = NULL, const wxColour *fg = NULL, const wxColour *bg = NULL );
37 virtual ~wxCursor();
38 bool operator == ( const wxCursor& cursor ) const;
39 bool operator != ( const wxCursor& cursor ) const;
40 bool Ok() const { return IsOk(); }
41 bool IsOk() const;
42
43 // implementation
44
45 GdkCursor *GetCursor() const;
46
47private:
48 DECLARE_DYNAMIC_CLASS(wxCursor)
49};
50
51#endif // __GTKCURSORH__