]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/cursor.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/cursor.cpp
3 // Purpose: wxCursor class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 #include "wx/cursor.h"
32 #include "wx/bitmap.h"
34 #include "wx/settings.h"
37 #include "wx/module.h"
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
49 IMPLEMENT_DYNAMIC_CLASS(wxCursor
, wxGDIObject
)
51 // ----------------------------------------------------------------------------
53 // ----------------------------------------------------------------------------
55 // Current cursor, in order to hang on to cursor handle when setting the cursor
57 static wxCursor
*gs_globalCursor
= NULL
;
59 // ----------------------------------------------------------------------------
61 // ----------------------------------------------------------------------------
64 // ============================================================================
66 // ============================================================================
69 // ----------------------------------------------------------------------------
71 // ----------------------------------------------------------------------------
78 wxCursor::wxCursor(const wxImage
& image
)
83 wxCursor::wxCursor(const char WXUNUSED(bits
)[],
86 int WXUNUSED(hotSpotX
), int WXUNUSED(hotSpotY
),
87 const char WXUNUSED(maskBits
)[])
91 wxCursor::wxCursor(const wxString
& filename
,
98 // Cursors by stock number
99 wxCursor::wxCursor(int idCursor
)
103 wxCursor::~wxCursor()
107 // ----------------------------------------------------------------------------
108 // other wxCursor functions
109 // ----------------------------------------------------------------------------
111 bool wxCursor::operator==(const wxCursor
& cursor
) const
116 wxGDIImageRefData
*wxCursor::CreateData() const
121 // ----------------------------------------------------------------------------
122 // Global cursor setting
123 // ----------------------------------------------------------------------------
125 const wxCursor
*wxGetGlobalCursor()
130 void wxSetCursor(const wxCursor
& cursor
)