]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: src/palmos/cursor.cpp | |
3 | // Purpose: wxCursor class | |
4 | // Author: William Osborne | |
5 | // Modified by: | |
6 | // Created: 10/13/04 | |
7 | // RCS-ID: $Id: | |
8 | // Copyright: (c) William Osborne | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // ============================================================================ | |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
21 | #pragma implementation "cursor.h" | |
22 | #endif | |
23 | ||
24 | // For compilers that support precompilation, includes "wx.h". | |
25 | #include "wx/wxprec.h" | |
26 | ||
27 | #ifdef __BORLANDC__ | |
28 | #pragma hdrstop | |
29 | #endif | |
30 | ||
31 | #ifndef WX_PRECOMP | |
32 | #include "wx/utils.h" | |
33 | #include "wx/app.h" | |
34 | #include "wx/bitmap.h" | |
35 | #include "wx/icon.h" | |
36 | #include "wx/cursor.h" | |
37 | #include "wx/settings.h" | |
38 | #include "wx/intl.h" | |
39 | #endif | |
40 | ||
41 | #include "wx/module.h" | |
42 | #include "wx/image.h" | |
43 | ||
44 | // ---------------------------------------------------------------------------- | |
45 | // private classes | |
46 | // ---------------------------------------------------------------------------- | |
47 | ||
48 | ||
49 | // ---------------------------------------------------------------------------- | |
50 | // wxWin macros | |
51 | // ---------------------------------------------------------------------------- | |
52 | ||
53 | IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject) | |
54 | ||
55 | // ---------------------------------------------------------------------------- | |
56 | // globals | |
57 | // ---------------------------------------------------------------------------- | |
58 | ||
59 | // Current cursor, in order to hang on to cursor handle when setting the cursor | |
60 | // globally | |
61 | static wxCursor *gs_globalCursor = NULL; | |
62 | ||
63 | // ---------------------------------------------------------------------------- | |
64 | // private classes | |
65 | // ---------------------------------------------------------------------------- | |
66 | ||
67 | ||
68 | // ============================================================================ | |
69 | // implementation | |
70 | // ============================================================================ | |
71 | ||
72 | ||
73 | // ---------------------------------------------------------------------------- | |
74 | // Cursors | |
75 | // ---------------------------------------------------------------------------- | |
76 | ||
77 | wxCursor::wxCursor() | |
78 | { | |
79 | } | |
80 | ||
81 | #if wxUSE_IMAGE | |
82 | wxCursor::wxCursor(const wxImage& image) | |
83 | { | |
84 | } | |
85 | #endif | |
86 | ||
87 | wxCursor::wxCursor(const char WXUNUSED(bits)[], | |
88 | int WXUNUSED(width), | |
89 | int WXUNUSED(height), | |
90 | int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY), | |
91 | const char WXUNUSED(maskBits)[]) | |
92 | { | |
93 | } | |
94 | ||
95 | wxCursor::wxCursor(const wxString& filename, | |
96 | long kind, | |
97 | int hotSpotX, | |
98 | int hotSpotY) | |
99 | { | |
100 | } | |
101 | ||
102 | // Cursors by stock number | |
103 | wxCursor::wxCursor(int idCursor) | |
104 | { | |
105 | } | |
106 | ||
107 | wxCursor::~wxCursor() | |
108 | { | |
109 | } | |
110 | ||
111 | // ---------------------------------------------------------------------------- | |
112 | // other wxCursor functions | |
113 | // ---------------------------------------------------------------------------- | |
114 | ||
115 | bool wxCursor::operator==(const wxCursor& cursor) const | |
116 | { | |
117 | return FALSE; | |
118 | } | |
119 | ||
120 | wxGDIImageRefData *wxCursor::CreateData() const | |
121 | { | |
122 | return NULL; | |
123 | } | |
124 | ||
125 | // ---------------------------------------------------------------------------- | |
126 | // Global cursor setting | |
127 | // ---------------------------------------------------------------------------- | |
128 | ||
129 | const wxCursor *wxGetGlobalCursor() | |
130 | { | |
131 | return NULL; | |
132 | } | |
133 | ||
134 | void wxSetCursor(const wxCursor& cursor) | |
135 | { | |
136 | } | |
137 | ||
138 |