]> git.saurik.com Git - wxWidgets.git/blame - src/dfb/cursor.cpp
test for __MINGW64__ in the huge files support section
[wxWidgets.git] / src / dfb / cursor.cpp
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/dfb/cursor.cpp
3// Purpose: wxCursor implementation
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// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
15 #pragma hdrstop
16#endif
17
18#include "wx/cursor.h"
19#include "wx/bitmap.h"
20
21//-----------------------------------------------------------------------------
22// wxCursorRefData
23//-----------------------------------------------------------------------------
24
8f884a0d 25class wxCursorRefData : public wxGDIRefData
b3c86150
VS
26{
27public:
28 wxCursorRefData(const wxBitmap& bmp = wxNullBitmap, int id = -1)
29 : m_id(id), m_bitmap(bmp) {}
30
8f884a0d
VZ
31 virtual bool IsOk() const { return m_bitmap.IsOk(); }
32
b3c86150
VS
33 int m_id;
34 wxBitmap m_bitmap;
35};
36
37#define M_CURSOR_OF(c) ((wxCursorRefData*)((c).m_refData))
38#define M_CURSOR M_CURSOR_OF(*this)
39
40//-----------------------------------------------------------------------------
41// wxCursor
42//-----------------------------------------------------------------------------
43
44IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxObject)
45
46wxCursor::wxCursor(int cursorId)
47{
48#warning "FIXME -- implement the cursor as bitmaps (that's what DFB uses)"
49}
50
51wxCursor::wxCursor(const char WXUNUSED(bits)[],
52 int WXUNUSED(width),
53 int WXUNUSED(height),
54 int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY),
55 const char WXUNUSED(maskBits)[],
56 wxColour * WXUNUSED(fg), wxColour * WXUNUSED(bg) )
57{
58#warning "FIXME"
59}
60
61wxCursor::wxCursor(const wxString& cursor_file,
62 long flags,
63 int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY))
64{
65#warning "FIXME"
66}
67
8f884a0d 68wxGDIRefData *wxCursor::CreateGDIRefData() const
b3c86150
VS
69{
70 return new wxCursorRefData;
71}
72
8f884a0d 73wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
b3c86150
VS
74{
75 return new wxCursorRefData(*(wxCursorRefData *)data);
76}
77
78
79// ----------------------------------------------------------------------------
80// Global cursor setting
81// ----------------------------------------------------------------------------
82
83void wxSetCursor(const wxCursor& cursor)
84{
85#warning "FIXME: implement"
86}
87
88
89
90//-----------------------------------------------------------------------------
91// busy cursor routines
92//-----------------------------------------------------------------------------
93
94#warning "FIXME: this should be common code"
95#if 0
96static wxCursor gs_savedCursor = wxNullCursor;
97static int gs_busyCount = 0;
98
99const wxCursor &wxBusyCursor::GetStoredCursor()
100{
101 return gs_savedCursor;
102}
103
104const wxCursor wxBusyCursor::GetBusyCursor()
105{
106 return gs_globalCursor;
107}
108#endif
109
110void wxEndBusyCursor()
111{
112 #warning "FIXME - do this logic in common code?"
113}
114
115void wxBeginBusyCursor(const wxCursor *cursor)
116{
117 #warning "FIXME"
118}
119
120bool wxIsBusy()
121{
122 #warning "FIXME"
123 return false;
124}