|
OpenTTD Source 20260129-master-g2bb01bd0e4
|
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. | |
Functions | |
| void | ShowMacDialog (std::string_view title, std::string_view message, std::string_view button_label) |
| Helper function displaying a message the best possible way. | |
| std::tuple< int, int, int > | GetMacOSVersion () |
| Get the version of the MacOS we are running under. | |
| bool | IsMonospaceFont (CFStringRef name) |
| Check if a font is a monospace font. | |
| void | MacOSSetThreadName (const std::string &name) |
| Set the name of the current thread for the debugger. | |
| uint64_t | MacOSGetPhysicalMemory () |
| Ask OS how much RAM it has physically attached. | |
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> > |
| std::tuple< int, int, int > GetMacOSVersion | ( | ) |
| bool IsMonospaceFont | ( | CFStringRef | name | ) |
| uint64_t MacOSGetPhysicalMemory | ( | ) |
| void MacOSSetThreadName | ( | const std::string & | name | ) |
Set the name of the current thread for the debugger.
| name | The new name of the current thread. |
Definition at line 178 of file macos.mm.
Referenced by SetCurrentThreadName().
| void ShowMacDialog | ( | std::string_view | title, |
| std::string_view | message, | ||
| std::string_view | buttonLabel | ||
| ) |
Helper function displaying a message the best possible way.
Helper function displaying a message the best possible way.
Definition at line 48 of file macos.mm.
References CocoaDialog().
Referenced by CrashLogOSX::DisplayCrashDialog(), HandleCrash(), and ShowOSErrorBox().