CGGetOnlineDisplayList usage in Swift
I realize this might be more of a developer question but I'm not building an app … just trying to get my display resolutions.
I'm not using Xcode … just swift from the command line so I can just have a swift file not a project.
gives
funcCGGetOnlineDisplayList(_
maxDisplays
: UInt32,_
onlineDspys
: UnsafeMutablePointer<CGDirectDisplayID>,_
dspyCnt
: UnsafeMutablePointer<UInt32>) -> CGErrorbut not a simple example of usage so I have no idea how to set up the variables and use them afterwards
( which I'm guessing will be looping through the displays and using CGDisplayPixelsHigh and CGDisplayPixelsWide)