2022-06-25 12:19:59 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(OS_MACOS)
|
|
|
|
|
2023-12-30 23:52:25 +01:00
|
|
|
struct GLFWwindow;
|
|
|
|
|
2023-02-08 13:51:56 +01:00
|
|
|
extern "C" {
|
2022-06-25 12:19:59 +02:00
|
|
|
|
2023-05-27 17:45:41 +02:00
|
|
|
void errorMessageMacos(const char *message);
|
2023-02-08 13:51:56 +01:00
|
|
|
void openWebpageMacos(const char *url);
|
|
|
|
bool isMacosSystemDarkModeEnabled();
|
2024-02-03 22:39:31 +01:00
|
|
|
bool isMacosFullScreenModeEnabled(GLFWwindow *window);
|
2023-02-08 14:11:42 +01:00
|
|
|
float getBackingScaleFactor();
|
2023-02-08 13:51:56 +01:00
|
|
|
|
2024-02-11 14:12:14 +01:00
|
|
|
void setupMacosWindowStyle(GLFWwindow *window, bool borderlessWindowMode);
|
2023-12-30 23:52:25 +01:00
|
|
|
|
2024-02-24 22:46:52 +01:00
|
|
|
void enumerateFontsMacos();
|
2024-05-20 11:27:57 +02:00
|
|
|
|
|
|
|
void macosHandleTitlebarDoubleClickGesture(GLFWwindow *window);
|
|
|
|
bool macosIsWindowBeingResizedByUser(GLFWwindow *window);
|
2024-06-12 19:51:12 +02:00
|
|
|
void macosMarkContentEdited(GLFWwindow *window, bool edited = true);
|
2023-02-08 13:51:56 +01:00
|
|
|
}
|
2022-06-25 12:19:59 +02:00
|
|
|
|
2024-05-20 11:27:57 +02:00
|
|
|
#endif
|