From: Richard K. <ric...@us...> - 2005-07-18 22:28:44
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29580 Modified Files: NSWindow.as Log Message: make frameRectForContentRectStyleMask and contentRectForFrameRectStyleMask static to be used for absolute window sizes during window creation Index: NSWindow.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSWindow.as,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** NSWindow.as 18 Jul 2005 03:53:04 -0000 1.25 --- NSWindow.as 18 Jul 2005 22:28:36 -0000 1.26 *************** *** 171,176 **** // Calculating layout ! public function contentRectForFrameRectStyleMask(styleMask:Number):NSRect { ! var rect:NSRect = m_frameRect.clone(); if (styleMask == NSBorderlessWindowMask) { return rect; --- 171,176 ---- // Calculating layout ! public static function contentRectForFrameRectStyleMask(frameRect:NSRect, styleMask:Number):NSRect { ! var rect:NSRect = frameRect.clone(); if (styleMask == NSBorderlessWindowMask) { return rect; *************** *** 185,190 **** } ! public function frameRectForContentRectStyleMask(styleMask:Number):NSRect { ! var rect:NSRect = m_contentRect.clone(); if (styleMask == NSBorderlessWindowMask) { return rect; --- 185,190 ---- } ! public static function frameRectForContentRectStyleMask(contentRect:NSRect, styleMask:Number):NSRect { ! var rect:NSRect = contentRect.clone(); if (styleMask == NSBorderlessWindowMask) { return rect; *************** *** 208,216 **** public function contentRectForFrameRect():NSRect { ! return contentRectForFrameRectStyleMask(m_styleMask); } public function frameRectForContentRect():NSRect { ! return frameRectForContentRectStyleMask(m_styleMask); } --- 208,216 ---- public function contentRectForFrameRect():NSRect { ! return NSWindow.contentRectForFrameRectStyleMask(m_frameRect, m_styleMask); } public function frameRectForContentRect():NSRect { ! return NSWindow.frameRectForContentRectStyleMask(m_contentRect, m_styleMask); } |