]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/utilsgui.cpp
added wxIsSameDouble() which wraps double comparison in a pragmas disabling icc warni...
[wxWidgets.git] / src / palmos / utilsgui.cpp
CommitLineData
ffecfa5a 1///////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/utilsgui.cpp
ffecfa5a 3// Purpose: Various utility functions only available in GUI
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// for compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#ifndef WX_PRECOMP
28 #include "wx/cursor.h"
29 #include "wx/window.h"
30 #include "wx/utils.h"
31#endif //WX_PRECOMP
32
33// ============================================================================
34// implementation
35// ============================================================================
36
37// ----------------------------------------------------------------------------
38// functions to work with .INI files
39// ----------------------------------------------------------------------------
40
41// Reading and writing resources (eg WIN.INI, .Xdefaults)
42#if wxUSE_RESOURCES
43bool wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file)
44{
45 return false;
46}
47
48bool wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file)
49{
50 return false;
51}
52
53bool wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file)
54{
55 return false;
56}
57
58bool wxWriteResource(const wxString& section, const wxString& entry, int value, const wxString& file)
59{
60 return false;
61}
62
63bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file)
64{
65 return false;
66}
67
68bool wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file)
69{
70 return false;
71}
72
73bool wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file)
74{
75 return false;
76}
77
78bool wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file)
79{
80 return false;
81}
82#endif // wxUSE_RESOURCES
83
84// ---------------------------------------------------------------------------
85// helper functions for showing a "busy" cursor
86// ---------------------------------------------------------------------------
87
88static int gs_wxBusyCursorCount = 0;
89
90// Set the cursor to the busy cursor for all windows
91void wxBeginBusyCursor(wxCursor *cursor)
92{
93}
94
95// Restore cursor to normal
96void wxEndBusyCursor()
97{
98}
99
100// true if we're between the above two calls
101bool wxIsBusy()
102{
103 return false;
104}
105
106// Check whether this window wants to process messages, e.g. Stop button
107// in long calculations.
108bool wxCheckForInterrupt(wxWindow *wnd)
109{
110 return false;
111}
112
113// MSW only: get user-defined resource from the .res file.
114// Returns NULL or newly-allocated memory, so use delete[] to clean up.
115
116wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType)
117{
118 return NULL;
119}
120
121// ----------------------------------------------------------------------------
122// get display info
123// ----------------------------------------------------------------------------
124
125// See also the wxGetMousePosition in window.cpp
126// Deprecated: use wxPoint wxGetMousePosition() instead
127void wxGetMousePosition( int* x, int* y )
128{
129};
130
131// Return true if we have a colour display
132bool wxColourDisplay()
133{
134 return false;
135}
136
137// Returns depth of screen
138int wxDisplayDepth()
139{
140 return 0;
141}
142
143// Get size of display
144void wxDisplaySize(int *width, int *height)
145{
146}
147
148void wxDisplaySizeMM(int *width, int *height)
149{
150}
151
152void wxClientDisplayRect(int *x, int *y, int *width, int *height)
153{
154}