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
|
|
|
|
// 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_
|
|
|
|
|
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
|
|
|
|
2014-11-10 20:02:45 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase
|
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 );
|
2021-04-17 14:32:54 -04:00
|
|
|
wxCursor(const char* const* xpmData);
|
2002-02-13 03:38:54 -05:00
|
|
|
#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:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxCursor);
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
#endif // _WX_CURSOR_H_
|