Fix "parameter name omitted" For CGWindowLevelForKey. Add Note About CGWindowLevel.

This commit is contained in:
Thomas A 2023-03-29 09:15:52 -07:00
parent 624da5b8e1
commit 3159ee117c
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#import <CoreGraphics/CGWindowLevel.h>
CGWindowLevel CGWindowLevelForKey(CGWindowLevelKey)
CGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key)
{
return kCGNormalWindowLevel;
}

View File

@ -3,6 +3,10 @@
#import <CoreFoundation/CoreFoundation.h>
// TODO: Fix CGWindowLevel
// CGWindowLevel actually isn't a ENUM, but is just a typedef.
// https://developer.apple.com/documentation/coregraphics/cgwindowlevel?language=objc
typedef CF_ENUM(int32_t, CGWindowLevel)
{
kCGNormalWindowLevel,