]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/utils.cpp
don't declare inline function with dllexport declaration, this provokes mingw32 warni...
[wxWidgets.git] / src / cocoa / utils.cpp
CommitLineData
a24aff65 1/////////////////////////////////////////////////////////////////////////////
8498a285 2// Name: src/cocoa/utils.cpp
a24aff65 3// Purpose: Various utilities
c2ca375c 4// Author: David Elliott
a24aff65 5// Created: 2003/??/??
5489a9a1 6// RCS-ID: $Id$
c2ca375c 7// Copyright: (c) wxWidgets dev team
5489a9a1 8// Licence: wxWindows licence
a24aff65
DE
9/////////////////////////////////////////////////////////////////////////////
10
8498a285
WS
11#include "wx/wxprec.h"
12
a24aff65 13#include "wx/utils.h"
670f9935
WS
14
15#ifndef WX_PRECOMP
16 #include "wx/app.h"
17#endif // WX_PRECOMP
18
a631300c 19#include "wx/apptrait.h"
1f360a2d 20#include "wx/display.h"
c2ca375c 21#include "wx/cocoa/private/timer.h"
a24aff65
DE
22
23#include <ctype.h>
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <stdarg.h>
29
a24aff65
DE
30void wxDisplaySize(int *width, int *height)
31{
32 // TODO
ba7c420a
DE
33 if(width)
34 *width = 1024;
35 if(height)
36 *height = 768;
a24aff65
DE
37}
38
39void wxDisplaySizeMM(int*,int*)
40{
41 // TODO
42}
43
44void wxClientDisplayRect(int *x,int *y,int *width,int *height)
45{
46 // TODO
47 if(x)
48 *x = 0;
49 if(y)
50 *y = 0;
51 if(width)
52 *width=1024;
53 if(height)
54 *height=768;
55}
56
9d639ffa 57wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const
15809513 58{
9d639ffa
VZ
59 // We suppose that toolkit version is the same as OS version under Mac
60 wxGetOsVersion(verMaj, verMin);
61
62 return wxPORT_COCOA;
15809513
DE
63}
64
c2ca375c
VZ
65wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer* timer)
66{
67 return new wxCocoaTimerImpl(timer);
68}
69
5489a9a1
WS
70wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
71{
72 return wxGenericFindWindowAtPoint(pt);
73}
74
75// Return true if we have a colour display
a24aff65
DE
76bool wxColourDisplay()
77{
78 // TODO
5489a9a1 79 return true;
a24aff65
DE
80}
81
82void wxGetMousePosition( int* x, int* y )
83{
84 // TODO
85};
86
87// Returns depth of screen
88int wxDisplayDepth()
89{
90 // TODO
91 return 0;
92}
93
94// Emit a beeeeeep
95void wxBell()
96{
97 // TODO
98}
99
100#if 0
77ffb593 101// DFE: These aren't even implemented by wxGTK, and no wxWidgets code calls
a24aff65
DE
102// them. If someone needs them, then they'll get a link error
103
104// Consume all events until no more left
105void wxFlushEvents()
106{
107}
108
109// Check whether this window wants to process messages, e.g. Stop button
110// in long calculations.
111bool wxCheckForInterrupt(wxWindow *wnd)
112{
113 // TODO
5489a9a1 114 return false;
a24aff65
DE
115}
116
117#endif
118