mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
cocoa: Implement FlashWindow
This commit is contained in:
parent
c2e8a791bb
commit
56b77b12bc
@ -107,6 +107,7 @@ Cocoa_CreateDevice(int devindex)
|
|||||||
device->GetWindowWMInfo = Cocoa_GetWindowWMInfo;
|
device->GetWindowWMInfo = Cocoa_GetWindowWMInfo;
|
||||||
device->SetWindowHitTest = Cocoa_SetWindowHitTest;
|
device->SetWindowHitTest = Cocoa_SetWindowHitTest;
|
||||||
device->AcceptDragAndDrop = Cocoa_AcceptDragAndDrop;
|
device->AcceptDragAndDrop = Cocoa_AcceptDragAndDrop;
|
||||||
|
device->FlashWindow = Cocoa_FlashWindow;
|
||||||
|
|
||||||
device->shape_driver.CreateShaper = Cocoa_CreateShaper;
|
device->shape_driver.CreateShaper = Cocoa_CreateShaper;
|
||||||
device->shape_driver.SetWindowShape = Cocoa_SetWindowShape;
|
device->shape_driver.SetWindowShape = Cocoa_SetWindowShape;
|
||||||
|
@ -151,6 +151,7 @@ extern void Cocoa_DestroyWindow(_THIS, SDL_Window * window);
|
|||||||
extern SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info);
|
extern SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info);
|
||||||
extern int Cocoa_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
|
extern int Cocoa_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
|
||||||
extern void Cocoa_AcceptDragAndDrop(SDL_Window * window, SDL_bool accept);
|
extern void Cocoa_AcceptDragAndDrop(SDL_Window * window, SDL_bool accept);
|
||||||
|
extern int Cocoa_FlashWindow(_THIS, SDL_Window * window, Uint32 flash_count);
|
||||||
|
|
||||||
#endif /* SDL_cocoawindow_h_ */
|
#endif /* SDL_cocoawindow_h_ */
|
||||||
|
|
||||||
|
@ -2116,6 +2116,15 @@ Cocoa_AcceptDragAndDrop(SDL_Window * window, SDL_bool accept)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
Cocoa_FlashWindow(_THIS, SDL_Window *window, Uint32 flash_count)
|
||||||
|
{ @autoreleasepool
|
||||||
|
{
|
||||||
|
/* Note that this is app-wide and not window-specific! */
|
||||||
|
[NSApp requestUserAttention:NSInformationalRequest];
|
||||||
|
return 0;
|
||||||
|
}}
|
||||||
|
|
||||||
int
|
int
|
||||||
Cocoa_SetWindowOpacity(_THIS, SDL_Window * window, float opacity)
|
Cocoa_SetWindowOpacity(_THIS, SDL_Window * window, float opacity)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user