]>
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"
38 #include "wx/module.h"
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 IMPLEMENT_DYNAMIC_CLASS(wxCursor
, wxGDIObject
)
52 // ----------------------------------------------------------------------------
54 // ----------------------------------------------------------------------------
56 // Current cursor, in order to hang on to cursor handle when setting the cursor
58 static wxCursor
*gs_globalCursor
= NULL
;
60 // ----------------------------------------------------------------------------
62 // ----------------------------------------------------------------------------
65 // ============================================================================
67 // ============================================================================
70 // ----------------------------------------------------------------------------
72 // ----------------------------------------------------------------------------
79 wxCursor::wxCursor(const wxImage
& image
)
84 wxCursor::wxCursor(const char WXUNUSED(bits
)[],
87 int WXUNUSED(hotSpotX
), int WXUNUSED(hotSpotY
),
88 const char WXUNUSED(maskBits
)[])
92 wxCursor::wxCursor(const wxString
& filename
,
99 // Cursors by stock number
100 wxCursor::wxCursor(int idCursor
)
104 wxCursor::~wxCursor()
108 // ----------------------------------------------------------------------------
109 // other wxCursor functions
110 // ----------------------------------------------------------------------------
112 bool wxCursor::operator==(const wxCursor
& cursor
) const
117 wxGDIImageRefData
*wxCursor::CreateData() const
122 // ----------------------------------------------------------------------------
123 // Global cursor setting
124 // ----------------------------------------------------------------------------
126 const wxCursor
*wxGetGlobalCursor()
131 void wxSetCursor(const wxCursor
& cursor
)