]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/x11/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/gdiobj.h" | |
16 | ||
17 | class WXDLLIMPEXP_FWD_CORE wxImage; | |
18 | ||
19 | //----------------------------------------------------------------------------- | |
20 | // wxCursor | |
21 | //----------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject | |
24 | { | |
25 | public: | |
26 | wxCursor(); | |
27 | wxCursor( int cursorId ); | |
28 | #if wxUSE_IMAGE | |
29 | wxCursor( const wxImage & image ); | |
30 | #endif | |
31 | ||
32 | wxCursor( const char bits[], int width, int height, | |
33 | int hotSpotX=-1, int hotSpotY=-1, | |
34 | const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 ); | |
35 | virtual ~wxCursor(); | |
36 | ||
37 | // implementation | |
38 | ||
39 | WXCursor GetCursor() const; | |
40 | ||
41 | protected: | |
42 | virtual wxGDIRefData *CreateGDIRefData() const; | |
43 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
44 | ||
45 | private: | |
46 | DECLARE_DYNAMIC_CLASS(wxCursor) | |
47 | }; | |
48 | ||
49 | #endif // _WX_CURSOR_H_ |