Contents

minFrameWidth(withTitle:styleMask:)

Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style.

Declaration

class func minFrameWidth(withTitle title: String, styleMask style: NSWindow.StyleMask) -> CGFloat

Parameters

  • title:

    The title for the window.

  • style:

    The window style for the window. See Stylemask Swift.struct for a list of style mask values.

Return Value

The minimum width of the window’s frame, using style, in order to display title.

See Also

Getting Layout Information