PageRenderTime 20ms CodeModel.GetById 9ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/Tools/NativeHost/WebWindow.h

http://github.com/cacaodev/cappuccino
C Header | 44 lines | 25 code | 12 blank | 7 comment | 0 complexity | ba2907c3535289c486def9c4c3d1877b MD5 | raw file
 1//
 2//  WebWindow.h
 3//  NativeHost
 4//
 5//  Created by Francisco Tolmasky on 10/18/09.
 6//  Copyright 2009 280 North, Inc.. All rights reserved.
 7//
 8
 9#import <Cocoa/Cocoa.h>
10
11
12typedef enum _CPWindowShadowStyle
13{
14    CPStandardWindowShadowStyle = 0,
15    CPMenuWindowShadowStyle     = 1,
16    CPPanelWindowShadowStyle    = 2,
17    CPCustomWindowShadowStyle   = 3
18} CPWindowShadowStyle;
19
20@interface WebWindow : NSWindow
21{
22    NSView              * leftMouseDownView;
23    NSView              * rightMouseDownView;
24
25    WebView             * webView;
26    NSView              * shadowView;
27
28    BOOL                hasShadow;
29    CPWindowShadowStyle shadowStyle;
30}
31
32+ (WebWindow *)webWindow;
33
34- (WebView *)webView;
35
36- (BOOL)hitTest:(NSPoint)aPoint;
37
38- (BOOL)hasShadow;
39- (void)setHasShadow:(BOOL)shouldHaveShadow;
40
41- (void)setShadowStyle:(CPWindowShadowStyle)aStyle;
42- (CPWindowShadowStyle)shadowStyle;
43
44@end