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