X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bb6b2c057edbcc5b87f00a8af6ac70f6fd69727..4fdfe2f3ae110c1f1ba2d925749cac5b761eff4b:/src/mgl/utils.cpp diff --git a/src/mgl/utils.cpp b/src/mgl/utils.cpp index 7fad2ad588..114277e970 100644 --- a/src/mgl/utils.cpp +++ b/src/mgl/utils.cpp @@ -24,6 +24,7 @@ #include "wx/apptrait.h" #include "wx/process.h" +#include "wx/evtloop.h" #include #include @@ -42,6 +43,15 @@ // misc. //---------------------------------------------------------------------------- +// Get free memory in bytes, or -1 if cannot determine amount (e.g. on UNIX) +wxMemorySize wxGetFreeMemory() +{ + // TODO - probably should be extracted to + // src/msdos/utilsdos.cpp and src/unix/utilsunx.cpp + // to avoid code duplication + return -1; +} + void wxBell() { // FIXME_MGL @@ -113,6 +123,12 @@ wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const return wxPORT_MGL; } +wxEventLoopBase* wxGUIAppTraits::CreateEventLoop() +{ + return new wxEventLoop; +} + + void wxGetMousePosition(int* x, int* y) { MS_getPos(x, y);