diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-16 16:30:26 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-16 16:30:26 +0000 |
commit | 9ebf8b15cfb105864e97a0e8b005de8e6e5d5c42 (patch) | |
tree | 504cf51b686c9da2a2fc97d03bc445f0e2f4bd97 /AppKit/GTMUILocalizerAndLayoutTweaker.h | |
parent | 77abbd0120948a146cf4646e619c211f306486d5 (diff) |
[Author: thomasvl]
add a helper for resizing a window without the subview resizing.
R=stuartmorgan
DELTA=32 (32 added, 0 deleted, 0 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.h')
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.h b/AppKit/GTMUILocalizerAndLayoutTweaker.h index 0ef0763..4f08525 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.h +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.h @@ -52,6 +52,14 @@ // Returns the amount the field changed height. + (CGFloat)sizeToFitFixedWidthTextField:(NSTextField *)textField; +// Resizes |window| by |delta| without letting the subviews of |window| get +// resized. Useful when you've done manual tweaking by things like +// +sizeToFitFixedWidthTextField. The window's origin is not adjusted. Passes +// |NO| to for -setFrame:display:'s |displayViews| flag on the assumptions +// the caller is doing all the invals/updates needed. ++ (void)resizeWindowWithoutAutoResizingSubViews:(NSWindow*)window + delta:(NSSize)delta; + @end // This is a Tweaker that will call sizeToFit on everything within it (that |