1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1999-11-24 12:30:56 +00:00
|
|
|
// Name: wx/msw/cursor.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxCursor class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_CURSOR_H_
|
|
|
|
#define _WX_CURSOR_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxImage;
|
2002-04-23 23:51:52 +00:00
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
// Cursor
|
2014-11-11 01:02:45 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
|
|
|
public:
|
2003-02-02 02:06:34 +00:00
|
|
|
// constructors
|
1999-11-24 12:30:56 +00:00
|
|
|
wxCursor();
|
2003-01-25 13:06:00 +00:00
|
|
|
wxCursor(const wxImage& image);
|
1999-11-24 12:30:56 +00:00
|
|
|
wxCursor(const wxString& name,
|
2008-09-25 17:56:07 +00:00
|
|
|
wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
|
1999-11-24 12:30:56 +00:00
|
|
|
int hotSpotX = 0, int hotSpotY = 0);
|
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
|
2014-11-11 01:02:50 +00:00
|
|
|
|
|
|
|
virtual wxPoint GetHotSpot() const wxOVERRIDE;
|
|
|
|
|
1999-11-24 12:30:56 +00:00
|
|
|
virtual ~wxCursor();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-02-02 02:06:34 +00:00
|
|
|
// implementation only
|
1999-11-24 12:30:56 +00:00
|
|
|
void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
|
|
|
|
WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-11-24 12:30:56 +00:00
|
|
|
protected:
|
2008-09-25 17:56:07 +00:00
|
|
|
void InitFromStock(wxStockCursor);
|
|
|
|
|
2003-02-02 02:06:34 +00:00
|
|
|
virtual wxGDIImageRefData *CreateData() const;
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-11-24 12:30:56 +00:00
|
|
|
private:
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxCursor);
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_CURSOR_H_
|