frameRect(forContentRect:styleMask:)
Returns the frame rectangle used by a window with a given content rectangle and window style.
Declaration
class func frameRect(forContentRect cRect: NSRect, styleMask style: NSWindow.StyleMask) -> NSRectParameters
- cRect:
The content rectangle for a window expressed in screen coordinates.
- style:
The window style for the window. See Stylemask Swift.struct for a list of style mask values.
Return Value
The frame rectangle, expressed in screen coordinates, used by the window with cRect and style.
Discussion
When a NSWindow instance is available, you should use frameRect(forContentRect:) instead of this method.