From 9ebf8b15cfb105864e97a0e8b005de8e6e5d5c42 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 16 Sep 2009 16:30:26 +0000 Subject: [Author: thomasvl] add a helper for resizing a window without the subview resizing. R=stuartmorgan DELTA=32 (32 added, 0 deleted, 0 changed) --- AppKit/GTMUILocalizerAndLayoutTweaker.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.h') 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 -- cgit v1.2.3