2001-06-26 21:05:06 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/mgl/cursor.h
|
2001-06-26 21:05:06 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Id: $Id$
|
2002-02-14 20:30:34 +00:00
|
|
|
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 21:05:06 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_CURSOR_H__
|
|
|
|
#define __WX_CURSOR_H__
|
|
|
|
|
2007-12-15 17:54:20 +00:00
|
|
|
#include "wx/gdiobj.h"
|
2001-06-26 21:05:06 +00:00
|
|
|
#include "wx/gdicmn.h"
|
|
|
|
|
|
|
|
class MGLCursor;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxCursor
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
|
2001-06-26 21:05:06 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxCursor();
|
2008-09-25 17:56:07 +00:00
|
|
|
wxCursor(wxStockCursor id) { InitFromStock(id); }
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
wxCursor(int id) { InitFromStock((wxStockCursor)id); }
|
|
|
|
#endif
|
2001-06-26 21:05:06 +00:00
|
|
|
wxCursor(const wxString& name,
|
2008-09-25 17:56:07 +00:00
|
|
|
wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
|
2001-06-26 21:05:06 +00:00
|
|
|
int hotSpotX = 0, int hotSpotY = 0);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxCursor();
|
2001-06-26 21:05:06 +00:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
MGLCursor *GetMGLCursor() const;
|
|
|
|
|
|
|
|
private:
|
2008-09-25 17:56:07 +00:00
|
|
|
void InitFromStock(wxStockCursor);
|
|
|
|
|
2001-06-26 21:05:06 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxCursor)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_CURSOR_H__
|