swift CGWindow备忘#macOS,#CoreGraphics

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swift CGWindow备忘#macOS,#CoreGraphics相关的知识,希望对你有一定的参考价值。

public var kCGNullWindowID: CGWindowID { get }

/* Keys for window dictionaries. */

/* The window ID, a unique value within the user session representing the
   window. The value of this key is a CFNumber 32-bit signed integer
   value. */

@available(OSX 10.5, *)
public let kCGWindowNumber: CFString

/* The backing store type of the window, one of `kCGBackingStoreRetained',
   `kCGBackingStoreNonretained', or `kCGBackingStoreBuffered'. The value of
   this key is a CFNumber 32-bit signed integer value. */

@available(OSX 10.5, *)
public let kCGWindowStoreType: CFString

/* The window layer number of the window. The value of this key is a
   CFNumber 32-bit signed integer value. */

@available(OSX 10.5, *)
public let kCGWindowLayer: CFString

/* The bounds of the window in screen space, with the origin at the
   upper-left corner of the main display. The value of this key is a
   CFDictionary; use `CGRectMakeWithDictionaryRepresentation' to obtain the
   bounds as a CGRect value. */

@available(OSX 10.5, *)
public let kCGWindowBounds: CFString

/* The sharing state of the window, one of `kCGWindowSharingNone',
   `kCGWindowSharingReadOnly', or `kCGWindowSharingReadWrite'. The value of
   this key is a CFNumber 32-bit signed integer value. */

@available(OSX 10.5, *)
public let kCGWindowSharingState: CFString

/* The alpha fade of the window. The value of this key is a CFNumber
   floating-point value. The value 1.0 is normal (opaque); the value 0.0 is
   fully transparent (invisible). */

@available(OSX 10.5, *)
public let kCGWindowAlpha: CFString

/* The process ID of the process that owns the window. The value of this key
   is a CFNumber 32-bit signed integer value. */

@available(OSX 10.5, *)
public let kCGWindowOwnerPID: CFString

/* An estimate of the memory in bytes currently used by the window and its
   supporting data structures. The value of this key is a CFNumber 64-bit
   signed integer value. */

@available(OSX 10.5, *)
public let kCGWindowMemoryUsage: CFString

/* If present, the name of the application process which owns the window.
   The value of this key is a CFString. */

@available(OSX 10.5, *)
public let kCGWindowOwnerName: CFString

/* If present, the name of the window. The value of this key is a
   CFString. */

@available(OSX 10.5, *)
public let kCGWindowName: CFString

/* If present, true if the window is ordered on screen, false otherwise. If
   the key is not present, then the window is not ordered on screen. The
   value of this key is a CFBoolean. */

@available(OSX 10.5, *)
public let kCGWindowIsOnscreen: CFString

/* If present, true if the window backing store is in video memory, false
   otherwise. If the key is not present, then the window backing store is in
   main memory. The value of this key is a CFBoolean. */

@available(OSX 10.5, *)
public let kCGWindowBackingLocationVideoMemory: CFString

以上是关于swift CGWindow备忘#macOS,#CoreGraphics的主要内容,如果未能解决你的问题,请参考以下文章

markdown MacOS命令备忘单

在 Swift 中为 macOS 构建框架时出错

C 中的 FTDI D2XX API 在命令行控制台上工作,但在由 Xcode 和 Swift 编程在 macOS 上构建的应用程序中始终返回零

XCode日常使用备忘录

Swift 备忘清单_开发速查表分享

学习Swift--枚举的初步认识 --个人备忘 大神勿喷