Converts the rectangle from the screen coordinate system to the window’s coordinate system
SDK
- macOS 10.7+
Framework
- App
Kit
Converts the rectangle from the screen coordinate system to the window’s coordinate system
SDK
Framework
var backing Scale Factor: CGFloat
The backing scale factor.
func backing Aligned Rect(NSRect, options: Alignment Options) -> NSRect
Returns a backing store pixel aligned rectangle in window coordinates.
func convert From Backing(NSRect) -> NSRect
Converts a rect from its pixel aligned backing store coordinate system to the window’s coordinate system.
func convert To Backing(NSRect) -> NSRect
Converts a rectangle from the window’s coordinate system to its pixel aligned backing store coordinate system.
func convert To Screen(NSRect) -> NSRect
Converts the rectangle to the screen coordinate system from the window’s coordinate system.