]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/cursor.h
adding command key accelerator
[wxWidgets.git] / include / wx / dfb / cursor.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/cursor.h
3// Purpose: wxCursor declaration
4// Author: Vaclav Slavik
5// Created: 2006-08-08
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_CURSOR_H_
12#define _WX_DFB_CURSOR_H_
13
14#include "wx/object.h"
15#include "wx/gdicmn.h"
16
17class WXDLLIMPEXP_CORE wxBitmap;
18
19//-----------------------------------------------------------------------------
20// wxCursor
21//-----------------------------------------------------------------------------
22
23class WXDLLIMPEXP_CORE wxCursor: public wxObject
24{
25public:
26 wxCursor() {}
27 wxCursor(int cursorId);
28 wxCursor(const char bits[], int width, int height,
29 int hotSpotX=-1, int hotSpotY=-1,
30 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
31 wxCursor(const wxString& name,
32 long flags = wxBITMAP_TYPE_CUR_RESOURCE,
33 int hotSpotX = 0, int hotSpotY = 0);
34
35 bool Ok() const;
36 bool operator==(const wxCursor& cursor) const;
37 bool operator!=(const wxCursor& cursor) const { return !(*this == cursor); }
38
39 // implementation
40 wxBitmap GetBitmap() const;
41
42protected:
43 // ref counting code
44 virtual wxObjectRefData *CreateRefData() const;
45 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
46
47 DECLARE_DYNAMIC_CLASS(wxCursor)
48};
49
50#endif // _WX_DFB_CURSOR_H_