2009-01-17 05:43:43 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2009-02-07 08:25:58 -05:00
|
|
|
// Name: wx/osx/cursor.h
|
2009-01-17 05:43:43 -05:00
|
|
|
// Purpose: wxCursor class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_CURSOR_H_
|
|
|
|
#define _WX_CURSOR_H_
|
|
|
|
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
|
|
|
// Cursor
|
2014-11-10 20:02:45 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase
|
2009-01-17 05:43:43 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxCursor();
|
|
|
|
|
|
|
|
wxCursor(const wxImage & image) ;
|
|
|
|
wxCursor(const wxString& name,
|
|
|
|
wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
|
|
|
|
int hotSpotX = 0, int hotSpotY = 0);
|
|
|
|
|
|
|
|
wxCursor(wxStockCursor id) { InitFromStock(id); }
|
|
|
|
#if WXWIN_COMPATIBILITY_2_8
|
|
|
|
wxCursor(int id) { InitFromStock((wxStockCursor)id); }
|
2008-06-11 12:30:48 -04:00
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
virtual ~wxCursor();
|
|
|
|
|
|
|
|
void MacInstall() const ;
|
|
|
|
|
|
|
|
void SetHCURSOR(WXHCURSOR cursor);
|
|
|
|
WXHCURSOR GetHCURSOR() const;
|
|
|
|
|
2009-12-03 12:20:15 -05:00
|
|
|
protected:
|
2009-01-17 05:43:43 -05:00
|
|
|
virtual wxGDIRefData *CreateGDIRefData() const;
|
|
|
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
|
|
|
|
2009-12-03 12:20:15 -05:00
|
|
|
private:
|
|
|
|
void InitFromStock(wxStockCursor);
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
void CreateFromImage(const wxImage & image) ;
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxCursor);
|
2009-01-17 05:43:43 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
extern WXDLLIMPEXP_CORE void wxSetCursor(const wxCursor& cursor);
|
|
|
|
|
|
|
|
#endif // _WX_CURSOR_H_
|