]>
Commit | Line | Data |
---|---|---|
83df96d6 | 1 | ///////////////////////////////////////////////////////////////////////////// |
1b88201f | 2 | // Name: wx/x11/cursor.h |
83df96d6 JS |
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 | |
1b88201f | 9 | // Licence: wxWindows licence |
83df96d6 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_CURSOR_H_ | |
13 | #define _WX_CURSOR_H_ | |
14 | ||
8f884a0d | 15 | #include "wx/gdiobj.h" |
f2a0f3a8 | 16 | #include "wx/colour.h" |
83df96d6 | 17 | |
8f884a0d | 18 | class WXDLLIMPEXP_FWD_CORE wxImage; |
83df96d6 | 19 | |
a11672a4 RR |
20 | //----------------------------------------------------------------------------- |
21 | // wxCursor | |
22 | //----------------------------------------------------------------------------- | |
83df96d6 | 23 | |
8f884a0d | 24 | class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject |
83df96d6 | 25 | { |
83df96d6 JS |
26 | public: |
27 | wxCursor(); | |
a11672a4 | 28 | wxCursor( int cursorId ); |
a11672a4 RR |
29 | #if wxUSE_IMAGE |
30 | wxCursor( const wxImage & image ); | |
31 | #endif | |
8f884a0d | 32 | |
a11672a4 RR |
33 | wxCursor( const char bits[], int width, int height, |
34 | int hotSpotX=-1, int hotSpotY=-1, | |
35 | const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 ); | |
d3c7fc99 | 36 | virtual ~wxCursor(); |
a11672a4 RR |
37 | |
38 | // implementation | |
39 | ||
40 | WXCursor GetCursor() const; | |
41 | ||
8f884a0d VZ |
42 | protected: |
43 | virtual wxGDIRefData *CreateGDIRefData() const; | |
44 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
45 | ||
a11672a4 RR |
46 | private: |
47 | DECLARE_DYNAMIC_CLASS(wxCursor) | |
83df96d6 JS |
48 | }; |
49 | ||
8f884a0d | 50 | #endif // _WX_CURSOR_H_ |