2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-10-17 10:44:52 -04:00
|
|
|
// Name: wx/x11/cursor.h
|
2002-02-05 11:34:33 -05:00
|
|
|
// Purpose: wxCursor class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2006-10-17 10:44:52 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_CURSOR_H_
|
|
|
|
#define _WX_CURSOR_H_
|
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
#include "wx/gdiobj.h"
|
2008-01-11 07:26:23 -05:00
|
|
|
#include "wx/colour.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxImage;
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-13 03:38:54 -05:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxCursor
|
|
|
|
//-----------------------------------------------------------------------------
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxCursor();
|
2002-02-13 03:38:54 -05:00
|
|
|
wxCursor( int cursorId );
|
|
|
|
#if wxUSE_IMAGE
|
|
|
|
wxCursor( const wxImage & image );
|
|
|
|
#endif
|
2007-12-15 12:54:20 -05:00
|
|
|
|
2002-02-13 03:38:54 -05:00
|
|
|
wxCursor( const char bits[], int width, int height,
|
|
|
|
int hotSpotX=-1, int hotSpotY=-1,
|
|
|
|
const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxCursor();
|
2002-02-13 03:38:54 -05:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
|
|
|
|
WXCursor GetCursor() const;
|
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
protected:
|
|
|
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
|
|
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
|
|
|
|
2002-02-13 03:38:54 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxCursor)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
#endif // _WX_CURSOR_H_
|