]>
git.saurik.com Git - wxWidgets.git/blob - src/cocoa/utils.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/cocoa/utils.cpp
3 // Purpose: Various utilities
4 // Author: David Elliott
7 // Copyright: (c) wxWidgets dev team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
19 #include "wx/apptrait.h"
20 #include "wx/display.h"
21 #include "wx/cocoa/private/timer.h"
30 void wxDisplaySize(int *width
, int *height
)
39 void wxDisplaySizeMM(int*,int*)
44 void wxClientDisplayRect(int *x
,int *y
,int *width
,int *height
)
57 wxPortId
wxGUIAppTraits::GetToolkitVersion(int *verMaj
, int *verMin
) const
59 // We suppose that toolkit version is the same as OS version under Mac
60 wxGetOsVersion(verMaj
, verMin
);
65 wxTimerImpl
* wxGUIAppTraits::CreateTimerImpl(wxTimer
* timer
)
67 return new wxCocoaTimerImpl(timer
);
70 wxWindow
* wxFindWindowAtPoint(const wxPoint
& pt
)
72 return wxGenericFindWindowAtPoint(pt
);
75 // Return true if we have a colour display
76 bool wxColourDisplay()
82 void wxGetMousePosition( int* x
, int* y
)
87 // Returns depth of screen
101 // DFE: These aren't even implemented by wxGTK, and no wxWidgets code calls
102 // them. If someone needs them, then they'll get a link error
104 // Consume all events until no more left
109 // Check whether this window wants to process messages, e.g. Stop button
110 // in long calculations.
111 bool wxCheckForInterrupt(wxWindow
*wnd
)