Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef MACOS_H
00013 #define MACOS_H
00014
00016 void ShowMacDialog(const char *title, const char *message, const char *button_label);
00017
00018 void GetMacOSVersion(int *return_major, int *return_minor, int *return_bugfix);
00019
00027 static inline bool MacOSVersionIsAtLeast(long major, long minor, long bugfix)
00028 {
00029 int version_major, version_minor, version_bugfix;
00030 GetMacOSVersion(&version_major, &version_minor, &version_bugfix);
00031
00032 if (version_major < major) return false;
00033 if (version_major == major && version_minor < minor) return false;
00034 if (version_major == major && version_minor == minor && version_bugfix < bugfix) return false;
00035
00036 return true;
00037 }
00038
00039 bool IsMonospaceFont(CFStringRef name);
00040
00041 #endif