Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGDisplayMBS class.
CGDisplayMBS.CaptureAllDisplays as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This has the nice effect of providing an immersive environment, and preventing other apps from trying to adjust themselves to display changes only needed by your app.
Returns an error code.
Some examples using this method:
CGDisplayMBS.CaptureAllDisplaysWithOptions(options as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This has the nice effect of providing an immersive environment, and preventing other apps from trying to adjust themselves to display changes only needed by your app.
Use kCGCaptureNoOptions and kCGCaptureNoFill for options parameter.
Returns an error code.
CGDisplayMBS.GetActiveDisplayList as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
The first display returned in the list is the main display, the one with the menu bar.
When mirroring, this will be the largest display, or if all are the same size, the one with the deepest pixel depth.
This function was named CGGetActiveDisplayListMBS in older plugin versions.
Some examples using this method:
CGDisplayMBS.GetDisplaysWithOpenGLDisplayMask(mask as Integer) as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
CGDisplayMBS.GetDisplaysWithPoint(cgpoint as CGPointMBS) as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
This function was called CGGetDisplaysWithPointMBS in older plugin versions.
See also:
CGDisplayMBS.GetDisplaysWithPoint(x as Double, y as Double) as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
This function was called CGGetDisplaysWithPointMBS in older plugin versions.
See also:
CGDisplayMBS.GetDisplaysWithRect(cgrect as CGRectMBS) as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
This function was called CGGetDisplaysWithRectMBS in older plugin versions.
See also:
CGDisplayMBS.GetDisplaysWithRect(x as Double, y as Double, w as Double, h as Double) as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
This function was called CGGetDisplaysWithRectMBS in older plugin versions.
See also:
CGDisplayMBS.GetLastMouseDelta(byref deltax as Integer, byref deltay as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CGDisplayMBS.GetOnlineDisplayList as CGDisplayMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an empty array on any error.
The first display returned in the list is the main display, the one with the menu bar.
When mirroring, this will be the largest display, or if all are the same size, the one with the deepest pixel depth.
With hardware mirroring, a display may be on-line, but not necessarily active, or drawable. Programs which manipulate display settings such as the palette or gamma tables need access to all displays in use, including hardware mirrors which are not drawable.
This function was named CGGetOnlineDisplayListMBS in older plugin versions.
CGDisplayMBS.MainDisplay as CGDisplayMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Some examples using this method:
- /AVFoundation/Screen Input
- /AVFoundation/Screen Recorder
- /MacCG/CoreGraphics DirectDisplay/Capture Screen with CGContextMBS
- /MacCG/CoreGraphics DirectDisplay/CG Modelist
- /MacCG/CoreGraphics DirectDisplay/CGDisplay Rotation
- /MacCG/CoreGraphics DirectDisplay/CGDisplayMBS CreateImageAsync
- /MacCG/CoreGraphics DirectDisplay/CGDisplayStreamEvent test
- /MacCG/CoreGraphics DirectDisplay/Gamma Test
- /MacCG/Display Brightness
- /MacCocoa/EasyStatusItem
CGDisplayMBS.ReleaseAllDisplays as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Release all captured displays, and restore the display modes to the user's preferences. May be used in conjunction with Capture or CaptureAllDisplays.
Some examples using this method:
CGDisplayMBS.RestoreColorSyncSettings
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CGDisplayMBS.ShieldingWindowLevel as Int32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreGraphics | MBS MacCG Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The items on this page are in the following plugins: MBS MacCG Plugin.