blob: bb13d01b74acd055f6994bc1f2e6a046ed3f51e0 [file] [log] [blame]
Chris Lattner6562fda2008-07-21 06:44:27 +00001// RUN: clang %s -fsyntax-only -verify
2// rdar://5967199
3
4typedef signed char BOOL;
5@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
6
7@protocol NSObject
8- (BOOL) isEqual:(id) object;
9@end
10
11@protocol NSCoding
12- (void) encodeWithCoder:(NSCoder *) aCoder;
13@end
14
15@interface NSObject < NSObject > {}
16@end
17
18typedef float CGFloat;
19typedef struct _NSPoint {} NSSize;
20typedef struct _NSRect {} NSRect;
21typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3} NSRectEdge;
22extern void NSDivideRect(NSRect inRect, NSRect * slice, NSRect * rem, CGFloat amount, NSRectEdge edge);
23
24@interface NSResponder:NSObject < NSCoding > {}
25@end
26
27@protocol NSAnimatablePropertyContainer
28- (id) animator;
29@end
30
31extern NSString *NSAnimationTriggerOrderIn;
32
33@interface NSView:NSResponder < NSAnimatablePropertyContainer > {}
34-(NSRect) bounds;
35@end
36
37enum {
38 NSBackgroundStyleLight = 0, NSBackgroundStyleDark, NSBackgroundStyleRaised, NSBackgroundStyleLowered
39};
40
41@interface NSTabView:NSView {}
42@end
43
44@ class OrganizerTabHeader;
45
46@interface OrganizerTabView:NSTabView {}
47@property(assign)
48NSSize minimumSize;
49@end
50
51@interface OrganizerTabView()
52@property(readonly) OrganizerTabHeader *tabHeaderView;
53@property(readonly) NSRect headerRect;
54@end
55
56@implementation OrganizerTabView
57@dynamic tabHeaderView, headerRect, minimumSize;
58-(CGFloat) tabAreaThickness {}
59-(NSRectEdge) rectEdgeForTabs {
60 NSRect dummy, result = {};
61 NSDivideRect(self.bounds, &result, &dummy, self.tabAreaThickness, self.rectEdgeForTabs);
62}
63