]> git.saurik.com Git - iphone-api.git/blob - WebCore/WAKWindow.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / WAKWindow.h
1 //
2 // WAKWindow.h
3 //
4 // Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 //
6
7 #ifndef WAKWindow_h
8 #define WAKWindow_h
9
10 #import <Foundation/Foundation.h>
11
12 #import <CoreGraphics/CoreGraphics.h>
13
14 #import "WAKAppKitStubs.h"
15
16 #import "WAKResponder.h"
17 #import "WAKView.h"
18 #import "WKWindow.h"
19 #import "WKContentObservation.h"
20
21 @class CALayer;
22
23 typedef enum {
24 kWAKWindowTilingModeNormal,
25 kWAKWindowTilingModeMinimal,
26 kWAKWindowTilingModePanning,
27 kWAKWindowTilingModeZooming,
28 kWAKWindowTilingModeDisabled
29 } WAKWindowTilingMode;
30
31 @interface WAKWindow : WAKResponder
32 {
33 WKWindowRef window;
34 }
35 // Create layer hosted window
36 - (id)initWithLayer:(CALayer *)hostLayer;
37 // Create unhosted window for manual painting
38 - (id)initWithFrame:(CGRect)frame;
39
40 - (void)setContentView:(WAKView *)aView;
41 - (WAKView *)contentView;
42 - (void)close;
43 - (WAKResponder *)firstResponder;
44 - (NSPoint)convertBaseToScreen:(NSPoint)aPoint;
45 - (NSPoint)convertScreenToBase:(NSPoint)aPoint;
46 - (void)endEditingFor:(id)anObject;
47 - (int)windowNumber;
48 - (GSEventRef)currentEvent;
49 - (BOOL)isKeyWindow;
50 - (NSSelectionDirection)keyViewSelectionDirection;
51 - (BOOL)makeFirstResponder:(NSResponder *)aResponder;
52 - (WKWindowRef)_windowRef;
53 - (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
54 - (void)sendGSEvent:(id)aGSEventRef;
55 - (void)sendGSEvent:(id)aGSEventRef contentChange:(WKContentChange *)aContentChange;
56
57 - (id)attachedSheet;
58
59 - (BOOL)_needsToResetDragMargins;
60 - (void)_setNeedsToResetDragMargins:(BOOL)flag;
61
62 // Tiling support
63 - (void)layoutTiles;
64 - (void)layoutTilesNow;
65 - (void)setNeedsDisplay;
66 - (void)setNeedsDisplayInRect:(CGRect)rect;
67 - (BOOL)tilesOpaque;
68 - (void)setTilesOpaque:(BOOL)opaque;
69 - (CGRect)visibleRect;
70 - (void)removeAllNonVisibleTiles;
71 - (void)removeAllTiles;
72 - (void)setTilingMode:(WAKWindowTilingMode)mode;
73 - (WAKWindowTilingMode)tilingMode;
74 - (BOOL)hasPendingDraw;
75
76 - (BOOL)useOrientationDependentFontAntialiasing;
77 - (void)setUseOrientationDependentFontAntialiasing:(BOOL)aa;
78 + (BOOL)hasLandscapeOrientation;
79 + (void)setOrientationProvider:(id)provider;
80
81 @end
82
83 #endif
84