]>
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
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "cursor.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
34 #include "wx/bitmap.h"
36 #include "wx/cursor.h"
37 #include "wx/settings.h"
41 #include "wx/module.h"
44 // ----------------------------------------------------------------------------
46 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 // ----------------------------------------------------------------------------
53 IMPLEMENT_DYNAMIC_CLASS(wxCursor
, wxGDIObject
)
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 // Current cursor, in order to hang on to cursor handle when setting the cursor
61 static wxCursor
*gs_globalCursor
= NULL
;
63 // ----------------------------------------------------------------------------
65 // ----------------------------------------------------------------------------
68 // ============================================================================
70 // ============================================================================
73 // ----------------------------------------------------------------------------
75 // ----------------------------------------------------------------------------
82 wxCursor::wxCursor(const wxImage
& image
)
87 wxCursor::wxCursor(const char WXUNUSED(bits
)[],
90 int WXUNUSED(hotSpotX
), int WXUNUSED(hotSpotY
),
91 const char WXUNUSED(maskBits
)[])
95 wxCursor::wxCursor(const wxString
& filename
,
102 // Cursors by stock number
103 wxCursor::wxCursor(int idCursor
)
107 wxCursor::~wxCursor()
111 // ----------------------------------------------------------------------------
112 // other wxCursor functions
113 // ----------------------------------------------------------------------------
115 bool wxCursor::operator==(const wxCursor
& cursor
) const
120 wxGDIImageRefData
*wxCursor::CreateData() const
125 // ----------------------------------------------------------------------------
126 // Global cursor setting
127 // ----------------------------------------------------------------------------
129 const wxCursor
*wxGetGlobalCursor()
134 void wxSetCursor(const wxCursor
& cursor
)