Added helper functions for setting initial window size:
authorDavid Elliott <dfe@tgwbd.org>
Wed, 13 Aug 2003 19:37:45 +0000 (19:37 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Wed, 13 Aug 2003 19:37:45 +0000 (19:37 +0000)
commitd139c3a84be966e6989b35ed6fc31e2580352c2b
treeb3fd3f27f8423cbd304901e835af4a9f0e1b6b1c
parent6056c7c6f31de099172165ae97784e1a426c758e
Added helper functions for setting initial window size:
* inline MakeDefaultNSRect makes an NSRect with position (10.0,10.0) and
  size based on the size passed to Create run through (Width|Height)Default
  This NSRect is to be used with the initWithFrame: initializer.
* SetInitialFrameRect is called after the window has been added to its parent
  and (if applicable) sized to fit.  If -1 is specified for a dimension then
  the fit/default size is kept.  If not, the window is sized to the specified
  size. It will be positioned in wxWindows coordinates (0,0==TL).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/cocoa/window.h
src/cocoa/window.mm