]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/x11/cursor.h
Fix part of [ 1570325 ] wxAnimationCtrl for wxAdv library
[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#include "wx/bitmap.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[]=0, wxColour *fg=0, wxColour *bg=0 );
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 WXCursor GetCursor() const;
46
47private:
48 DECLARE_DYNAMIC_CLASS(wxCursor)
49};
50
51
52#endif
53// _WX_CURSOR_H_