NSScreenMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem