X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a1d0b8ebc7d4329d5ffe918000fcaa4e84c4ac9..85f138db83939ce7c59a942aaecca7fa98168db3:/src/cocoa/utils.cpp?ds=sidebyside diff --git a/src/cocoa/utils.cpp b/src/cocoa/utils.cpp index 2670e8e738..ef9413bec6 100644 --- a/src/cocoa/utils.cpp +++ b/src/cocoa/utils.cpp @@ -13,6 +13,7 @@ #include "wx/utils.h" #include "wx/app.h" #include "wx/apptrait.h" +#include "wx/display.h" #include @@ -22,6 +23,11 @@ #include // Get size of display +size_t wxDisplayBase::GetCount() +{ + return 1; +} + void wxDisplaySize(int *width, int *height) { // TODO @@ -49,6 +55,15 @@ void wxClientDisplayRect(int *x,int *y,int *width,int *height) *height=768; } +wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() +{ + static wxToolkitInfo info; + info.shortName = _T("cocoa"); + info.name = _T("wxCocoa"); + // TODO: Finish this + return info; +} + // Return TRUE if we have a colour display bool wxColourDisplay() { @@ -75,7 +90,7 @@ void wxBell() } #if 0 -// DFE: These aren't even implemented by wxGTK, and no wxWindows code calls +// DFE: These aren't even implemented by wxGTK, and no wxWidgets code calls // them. If someone needs them, then they'll get a link error // Consume all events until no more left