1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: cursor.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-26 05:56:58 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#ifndef _WX_GTK_CURSOR_H_
|
|
|
|
#define _WX_GTK_CURSOR_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
#include "wx/object.h"
|
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxColour;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxImage;
|
2002-01-31 17:11:06 -05:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxCursor
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor: public wxObject
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-11-22 14:44:25 -05:00
|
|
|
public:
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1998-12-09 12:30:17 -05:00
|
|
|
wxCursor();
|
1998-07-04 11:17:59 -04:00
|
|
|
wxCursor( int cursorId );
|
2002-01-31 17:11:06 -05:00
|
|
|
#if wxUSE_IMAGE
|
|
|
|
wxCursor( const wxImage & image );
|
|
|
|
#endif
|
2000-11-18 09:46:58 -05:00
|
|
|
wxCursor( const char bits[], int width, int height,
|
|
|
|
int hotSpotX=-1, int hotSpotY=-1,
|
2006-04-16 18:18:29 -04:00
|
|
|
const char maskBits[] = NULL, const wxColour *fg = NULL, const wxColour *bg = NULL );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxCursor();
|
2006-10-08 17:56:55 -04:00
|
|
|
bool Ok() const { return IsOk(); }
|
|
|
|
bool IsOk() const;
|
1998-12-09 12:30:17 -05:00
|
|
|
|
1999-11-22 14:44:25 -05:00
|
|
|
// implementation
|
|
|
|
|
1998-12-09 12:30:17 -05:00
|
|
|
GdkCursor *GetCursor() const;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-11-22 14:44:25 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxCursor)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#endif // _WX_GTK_CURSOR_H_
|