]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: cursor.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
dbf858b5 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
0416c418 PC |
10 | #ifndef _WX_GTK_CURSOR_H_ |
11 | #define _WX_GTK_CURSOR_H_ | |
c801d85f | 12 | |
8f884a0d | 13 | #include "wx/gdiobj.h" |
c801d85f | 14 | |
b5dbe15d VS |
15 | class WXDLLIMPEXP_FWD_CORE wxColour; |
16 | class WXDLLIMPEXP_FWD_CORE wxImage; | |
7eff657c | 17 | |
c801d85f KB |
18 | //----------------------------------------------------------------------------- |
19 | // wxCursor | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
8f884a0d | 22 | class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject |
c801d85f | 23 | { |
20e05ffb | 24 | public: |
8bbe427f | 25 | wxCursor(); |
debe6624 | 26 | wxCursor( int cursorId ); |
7eff657c JS |
27 | #if wxUSE_IMAGE |
28 | wxCursor( const wxImage & image ); | |
29 | #endif | |
a1db952f VS |
30 | wxCursor( const char bits[], int width, int height, |
31 | int hotSpotX=-1, int hotSpotY=-1, | |
8f884a0d VZ |
32 | const char maskBits[] = NULL, |
33 | const wxColour *fg = NULL, const wxColour *bg = NULL ); | |
d3c7fc99 | 34 | virtual ~wxCursor(); |
8bbe427f | 35 | |
20e05ffb RR |
36 | // implementation |
37 | ||
8bbe427f | 38 | GdkCursor *GetCursor() const; |
c801d85f | 39 | |
8f884a0d VZ |
40 | protected: |
41 | virtual wxGDIRefData *CreateGDIRefData() const; | |
42 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
43 | ||
20e05ffb RR |
44 | private: |
45 | DECLARE_DYNAMIC_CLASS(wxCursor) | |
c801d85f KB |
46 | }; |
47 | ||
0416c418 | 48 | #endif // _WX_GTK_CURSOR_H_ |