sokol: sapp_macos_set_title
parent
61c1c4a690
commit
f33d9f4f68
|
@ -846,6 +846,7 @@ SOKOL_API_DECL const void* sapp_metal_get_renderpass_descriptor(void);
|
||||||
SOKOL_API_DECL const void* sapp_metal_get_drawable(void);
|
SOKOL_API_DECL const void* sapp_metal_get_drawable(void);
|
||||||
/* macOS: get ARC-bridged pointer to macOS NSWindow */
|
/* macOS: get ARC-bridged pointer to macOS NSWindow */
|
||||||
SOKOL_API_DECL const void* sapp_macos_get_window(void);
|
SOKOL_API_DECL const void* sapp_macos_get_window(void);
|
||||||
|
SOKOL_API_DECL void sapp_macos_set_title(const char* title);
|
||||||
/* iOS: get ARC-bridged pointer to iOS UIWindow */
|
/* iOS: get ARC-bridged pointer to iOS UIWindow */
|
||||||
SOKOL_API_DECL const void* sapp_ios_get_window(void);
|
SOKOL_API_DECL const void* sapp_ios_get_window(void);
|
||||||
|
|
||||||
|
@ -7527,6 +7528,12 @@ SOKOL_API_IMPL const void* sapp_macos_get_window(void) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SOKOL_API_IMPL void sapp_macos_set_title(const char* title) {
|
||||||
|
#if defined(__APPLE__) && !TARGET_OS_IPHONE
|
||||||
|
[_sapp_macos_window_obj setTitle: [NSString stringWithUTF8String:title]];
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
SOKOL_API_IMPL const void* sapp_ios_get_window(void) {
|
SOKOL_API_IMPL const void* sapp_ios_get_window(void) {
|
||||||
#if defined(__APPLE__) && TARGET_OS_IPHONE
|
#if defined(__APPLE__) && TARGET_OS_IPHONE
|
||||||
const void* obj = (__bridge const void*) _sapp_ios_window_obj;
|
const void* obj = (__bridge const void*) _sapp_ios_window_obj;
|
||||||
|
|
Loading…
Reference in New Issue