-
Notifications
You must be signed in to change notification settings - Fork 0
/
OIWindow.h
52 lines (35 loc) · 1.07 KB
/
OIWindow.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
42
43
44
45
46
47
48
49
50
51
//
// OIWindow.h
// Ohai
//
// Created by ∞ on 14/11/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OIResponder.h"
@class OIView, OIRectangle;
typedef void* OIWindowNativeImplementationRef;
#define OIWindowViewLog (@"OIWindowViewLog")
@interface OIWindow : OIResponder {
OIWindowNativeImplementationRef native;
NSRect frame;
BOOL hidden;
OIRectangle* background;
NSMutableArray* views;
}
- (id) init;
- (id) initWithFrame:(NSRect) f; // designated
+ window;
+ windowWithFrame:(NSRect) f;
@property(assign) BOOL hidden;
- (void) show;
- (void) orderFront;
@property(assign) NSRect frame;
@property(readonly) NSRect bounds; // unlike other AppKitalikes, -bounds here is just -frame in this OIWindow's coordinates. Always derived from -frame.
@property(assign) BOOL zoomed;
@property(readonly) OIWindowNativeImplementationRef nativeWindow;
- (void) addView:(OIView*) shape;
- (void) removeView:(OIView*) shape;
@property(readonly, retain) OIRectangle* background;
@property(readonly) NSArray* views;
@end