-
Notifications
You must be signed in to change notification settings - Fork 16
/
UIView.h
41 lines (34 loc) · 924 Bytes
/
UIView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// UIView.h
// UIKit
//
// Created by Shaun Harrison on 4/30/09.
// Copyright 2009 enormego. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <UIKit/UIKitDefines.h>
enum {
UIViewAutoresizingNone = 0,
UIViewAutoresizingFlexibleLeftMargin = 1,
UIViewAutoresizingFlexibleWidth = 2,
UIViewAutoresizingFlexibleRightMargin = 4,
UIViewAutoresizingFlexibleTopMargin = 8,
UIViewAutoresizingFlexibleHeight = 16,
UIViewAutoresizingFlexibleBottomMargin = 32
};
@class UIColor, CALayer;
@interface UIView : NSView {
@private
UIColor* _backgroundColor;
BOOL _needsLayout;
}
- (void)setNeedsDisplay;
- (void)setNeedsLayout;
- (void)layoutIfNeeded;
- (void)layoutSubviews;
@property(nonatomic,retain) UIColor* backgroundColor;
@end
@interface NSView (UIViewLayerBacking)
@property(nonatomic,assign,getter=isHidden) BOOL hidden;
@property(nonatomic,retain) CALayer* layer;
@end