- *width = qd.screenBits.bounds.right - qd.screenBits.bounds.left ;
- *height = qd.screenBits.bounds.bottom - qd.screenBits.bounds.top ;
- *height -= LMGetMBarHeight() ;
+ wxClientDisplayRect( NULL , NULL , width , height ) ;
+}
+
+void wxDisplaySizeMM(int *width, int *height)
+{
+ wxDisplaySize(width, height);
+ // on mac 72 is fixed (at least now ;-)
+ *width *= 25.4 / 72 ;
+ *height *= 25.4 / 72 ;
+}
+
+void wxClientDisplayRect(int *x, int *y, int *width, int *height)
+{
+ BitMap screenBits;
+ GetQDGlobalsScreenBits( &screenBits );
+
+ if (x) *x = 0;
+ if (y) *y = 0;
+
+ *width = screenBits.bounds.right - screenBits.bounds.left ;
+ *height = screenBits.bounds.bottom - screenBits.bounds.top ;
+
+ SInt16 mheight ;
+ #if TARGET_CARBON
+ GetThemeMenuBarHeight( &mheight ) ;
+ #else
+ mheight = LMGetMBarHeight() ;
+ #endif
+ *height -= mheight ;
+ if ( y )
+ *y = mheight ;
+}
+
+wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
+{
+ return wxGenericFindWindowAtPoint(pt);
+}
+
+wxString wxGetOsDescription()
+{
+#ifdef WXWIN_OS_DESCRIPTION
+ // use configure generated description if available
+ return wxString("MacOS (") + WXWIN_OS_DESCRIPTION + wxString(")");
+#else
+ return "MacOS" ; //TODO:define further
+#endif