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-10-03 03:42:19 -04:00
|
|
|
#include "wx/gdicmn.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();
|
2008-09-25 13:56:07 -04:00
|
|
|
wxCursor(wxStockCursor id) { InitFromStock(id); }
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
wxCursor(int id) { InitFromStock((wxStockCursor)id); }
|
|
|
|
#endif
|
2002-02-13 03:38:54 -05:00
|
|
|
#if wxUSE_IMAGE
|
|
|
|
wxCursor( const wxImage & image );
|
|
|
|
#endif
|
2007-12-15 12:54:20 -05:00
|
|
|
|
2008-09-25 13:56:07 -04:00
|
|
|
wxCursor(const wxString& name,
|
|
|
|
wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
|
|
|
|
int hotSpotX = 0, int hotSpotY = 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:
|
2008-09-25 13:56:07 -04:00
|
|
|
void InitFromStock(wxStockCursor);
|
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
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_
|