|
OpenTTD Source
1.10.0-RC1
|
Functions related to MacOS support. More...
Go to the source code of this file.
Data Structures | |
| struct | CFDeleter< T > |
| Deleter that calls CFRelease rather than deleting the pointer. More... | |
Typedefs | |
| template<typename T > | |
| using | CFAutoRelease = std::unique_ptr< typename std::remove_pointer< T >::type, CFDeleter< typename std::remove_pointer< T >::type > > |
| Specialisation of std::unique_ptr for CoreFoundation objects. More... | |
Functions | |
| void | ShowMacDialog (const char *title, const char *message, const char *button_label) |
| Helper function displaying a message the best possible way. More... | |
| void | GetMacOSVersion (int *return_major, int *return_minor, int *return_bugfix) |
| static bool | MacOSVersionIsAtLeast (long major, long minor, long bugfix) |
| Check if we are at least running on the specified version of Mac OS. More... | |
| bool | IsMonospaceFont (CFStringRef name) |
| void | MacOSSetThreadName (const char *name) |
Functions related to MacOS support.
Definition in file macos.h.
| using CFAutoRelease = std::unique_ptr<typename std::remove_pointer<T>::type, CFDeleter<typename std::remove_pointer<T>::type> > |
|
inlinestatic |
Check if we are at least running on the specified version of Mac OS.
| major | major version of the os. This would be 10 in the case of 10.4.11. |
| minor | minor version of the os. This would be 4 in the case of 10.4.11. |
| bugfix | bugfix version of the os. This would be 11 in the case of 10.4.11. |
Definition at line 25 of file macos.h.
Referenced by CoreTextParagraphLayoutFactory::GetParagraphLayout(), MacOSSetCurrentLocaleName(), and MacOSStringCompare().
| void ShowMacDialog | ( | const char * | title, |
| const char * | message, | ||
| const char * | button_label | ||
| ) |
Helper function displaying a message the best possible way.
Referenced by CrashLogOSX::DisplayCrashDialog(), and HandleCrash().