]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/utilsgui.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/utilsgui.cpp
3 // Purpose: Various utility functions only available in GUI
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"
28 #include "wx/cursor.h"
29 #include "wx/window.h"
33 // ============================================================================
35 // ============================================================================
37 // ---------------------------------------------------------------------------
38 // helper functions for showing a "busy" cursor
39 // ---------------------------------------------------------------------------
41 static int gs_wxBusyCursorCount
= 0;
43 // Set the cursor to the busy cursor for all windows
44 void wxBeginBusyCursor(const wxCursor
*cursor
)
48 // Restore cursor to normal
49 void wxEndBusyCursor()
53 // true if we're between the above two calls
59 // Check whether this window wants to process messages, e.g. Stop button
60 // in long calculations.
61 bool wxCheckForInterrupt(wxWindow
*wnd
)
66 // MSW only: get user-defined resource from the .res file.
67 // Returns NULL or newly-allocated memory, so use delete[] to clean up.
69 wxChar
*wxLoadUserResource(const wxString
& resourceName
, const wxString
& resourceType
)
74 // ----------------------------------------------------------------------------
76 // ----------------------------------------------------------------------------
78 // See also the wxGetMousePosition in window.cpp
79 // Deprecated: use wxPoint wxGetMousePosition() instead
80 void wxGetMousePosition( int* x
, int* y
)
84 // Return true if we have a colour display
85 bool wxColourDisplay()
90 // Returns depth of screen
96 // Get size of display
97 void wxDisplaySize(int *width
, int *height
)
101 void wxDisplaySizeMM(int *width
, int *height
)
105 void wxClientDisplayRect(int *x
, int *y
, int *width
, int *height
)