Returns the frame rectangle used by a window with a given content rectangle and window style.
Original signature is '+ (NSRect)frameRectForContentRect:(NSRect)windowContentRect styleMask:(NSUInteger)windowStyle'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSRect FrameRectForContentRectStyleMask( NSRect windowContentRect, NSWindowStyleMask windowStyle )
Public Shared Function FrameRectForContentRectStyleMask ( _ windowContentRect As NSRect, _ windowStyle As NSWindowStyleMask _ ) As NSRect
public: static NSRect FrameRectForContentRectStyleMask( NSRect windowContentRect, NSWindowStyleMask windowStyle )
Parameters
- windowContentRect (NSRect)
- The content rectangle for a window expressed in screen coordinates.
- windowStyle (NSWindowStyleMask)
- The window style for the window. See “Window Style Masks” for a list of style mask values.
Return Value
The frame rectangle, expressed in screen coordinates, used by the window with windowContentRect and windowStyle.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)