2002-02-05 16:34:33 +00: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 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 16:34:33 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_CURSOR_H_
|
|
|
|
#define _WX_CURSOR_H_
|
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-02-05 16:34:33 +00:00
|
|
|
#pragma interface "cursor.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/bitmap.h"
|
|
|
|
|
2002-02-13 08:38:54 +00:00
|
|
|
#if wxUSE_IMAGE
|
|
|
|
#include "wx/image.h"
|
|
|
|
#endif
|
2002-02-05 16:34:33 +00:00
|
|
|
|
2002-02-13 08:38:54 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxCursor
|
|
|
|
//-----------------------------------------------------------------------------
|
2002-02-05 16:34:33 +00:00
|
|
|
|
2002-02-13 08:38:54 +00:00
|
|
|
class wxCursor: public wxObject
|
2002-02-05 16:34:33 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-02-13 08:38:54 +00:00
|
|
|
|
2002-02-05 16:34:33 +00:00
|
|
|
wxCursor();
|
2002-02-13 08:38:54 +00:00
|
|
|
wxCursor( int cursorId );
|
|
|
|
wxCursor( const wxCursor &cursor );
|
|
|
|
#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 16:34:33 +00:00
|
|
|
~wxCursor();
|
2002-02-13 08:38:54 +00:00
|
|
|
wxCursor& operator = ( const wxCursor& cursor );
|
|
|
|
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 16:34:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_CURSOR_H_
|