Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSScreenMBS class.

NSScreenMBS.backingAlignedRect(r as NSRectMBS, options as UInt64) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts a rectangle in global screen coordinates to a pixel aligned rectangle.

r: The input rectangle in global screen coordinates.
options: Specifies the alignment options. See NSAlignmentOptions for possible values.
Returns a a pixel aligned rectangle on the target screen from the given input rectangle in global screen coordinates.

This method uses NSIntegralRectWithOptions() to produce the pixel aligned rectangle.
Available in Mac OS X v10.7 and later.

NSScreenMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The private constructor.

NSScreenMBS.convertRectFromBacking(r as NSRectMBS) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts the rectangle from the device pixel aligned coordinates system of a screen.

r: The rectangle.

Returns the rectangle converted from the device pixel aligned coordinates system of the screen.
Available in Mac OS X v10.7 and later.

NSScreenMBS.convertRectToBacking(r as NSRectMBS) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts the rectangle to the device pixel aligned coordinates system of a screen.

r: The rectangle.

Returns the rectangle converted to the device pixel aligned coordinates system of the screen.
Available in Mac OS X v10.7 and later.

NSScreenMBS.supportedWindowDepths as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a zero-terminated array of the window depths supported by the receiver.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...