2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: cursor.h
|
|
|
|
// Purpose: wxCursor class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_CURSOR_H_
|
|
|
|
#define _WX_CURSOR_H_
|
|
|
|
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
2002-02-13 03:38:54 -05:00
|
|
|
#if wxUSE_IMAGE
|
|
|
|
#include "wx/image.h"
|
|
|
|
#endif
|
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
|
|
|
|
2005-08-02 14:16:51 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxCursor: public wxObject
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
2002-02-13 03:38:54 -05:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
wxCursor();
|
2002-02-13 03:38:54 -05:00
|
|
|
wxCursor( int cursorId );
|
|
|
|
#if wxUSE_IMAGE
|
|
|
|
wxCursor( const wxImage & image );
|
|
|
|
#endif
|
|
|
|
wxCursor( const char bits[], int width, int height,
|
|
|
|
int hotSpotX=-1, int hotSpotY=-1,
|
|
|
|
const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
|
2002-02-05 11:34:33 -05:00
|
|
|
~wxCursor();
|
2002-02-13 03:38:54 -05:00
|
|
|
bool operator == ( const wxCursor& cursor ) const;
|
|
|
|
bool operator != ( const wxCursor& cursor ) const;
|
|
|
|
bool Ok() const;
|
|
|
|
|
|
|
|
// implementation
|
|
|
|
|
|
|
|
WXCursor GetCursor() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxCursor)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_CURSOR_H_
|