]>
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 wxString
& filename
,
90 // Cursors by stock number
91 void wxCursor::InitFromStock(wxStockCursor idCursor
)
99 // ----------------------------------------------------------------------------
100 // other wxCursor functions
101 // ----------------------------------------------------------------------------
103 wxGDIImageRefData
*wxCursor::CreateData() const
108 // ----------------------------------------------------------------------------
109 // Global cursor setting
110 // ----------------------------------------------------------------------------
112 const wxCursor
*wxGetGlobalCursor()
117 void wxSetCursor(const wxCursor
& cursor
)