/*
    IBViewIntegration.h
    Interface Builder Kit
    Copyright 2006-2009 Apple Inc.
    All rights reserved.
    
    The Interface Builder Kit framework extends the NSView class by adding methods to determine if a view can be repositioned or resized, its guide and design-time size, and other such information.  Interface Builder uses these methods to discover relevant information about the views on your custom plug-ins. You typically do not call these methods directly. Instead, you override them to customize the behavior for your views.  Because these methods are relevant only in the context of Interface Builder, it is recommended that you implement these methods in a category on your class and include the category code only in your Interface Builder plug-in.
*/

#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5

#import <Cocoa/Cocoa.h>

#import <InterfaceBuilderKit/IBObjectIntegration.h>
#import <InterfaceBuilderKit/IBGeometry.h>

@interface NSView (IBViewIntegration)

/* Returns the content view for the specified view. */
- (NSView *)ibDesignableContentView;

/* Returns the preferred size (same as "Size to Fit"), and the preferred resize direction. */
- (NSSize)ibPreferredDesignSize;
- (IBDirection)ibPreferredResizeDirection;

/* Returns the insets and sizes for the view. */
- (IBInset)ibLayoutInset;
- (NSSize)ibMinimumSize;
- (NSSize)ibMaximumSize;

/* Returns the baseline count, and provides access to the baselines by index. */
- (NSInteger)ibBaselineCount;
- (CGFloat)ibBaselineAtIndex:(NSInteger)index;

@end

#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 */
