4 // Copyright (C) 2005, 2006, 2007, 2008, Apple Inc. All rights reserved.
9 #import <CoreGraphics/CoreGraphics.h>
10 #import <CoreGraphics/CGSTypes.h>
11 #import <GraphicsServices/GSEvent.h>
13 #import "WebCoreThread.h"
15 #import "WKUtilities.h"
21 typedef WebCore::TiledSurface TiledSurface
;
23 typedef struct TiledSurface TiledSurface
;
29 typedef struct WAKWindow WAKWindow
;
40 WKViewRef contentView
;
41 WKViewRef responderView
;
42 TiledSurface
* tiledSurface
;
43 unsigned int useOrientationDependentFontAntialiasing
:1;
44 unsigned int isOffscreen
:1;
47 extern WKClassInfo WKWindowClassInfo
;
49 WKWindowRef
WKWindowCreate(WAKWindow
* wakWindow
, CGRect contentRect
);
51 void WKWindowSetContentView (WKWindowRef window
, WKViewRef aView
);
52 WKViewRef
WKWindowGetContentView (WKWindowRef window
);
54 void WKWindowSetContentRect(WKWindowRef window
, CGRect contentRect
);
55 CGRect
WKWindowGetContentRect(WKWindowRef window
);
57 void WKWindowClose (WKWindowRef window
);
59 bool WKWindowMakeFirstResponder (WKWindowRef window
, WKViewRef view
);
60 WKViewRef
WKWindowFirstResponder (WKWindowRef window
);
61 void WKWindowSendEvent (WKWindowRef window
, GSEventRef event
);
63 CGPoint
WKWindowConvertBaseToScreen (WKWindowRef window
, CGPoint point
);
64 CGPoint
WKWindowConvertScreenToBase (WKWindowRef window
, CGPoint point
);
66 void WKWindowSetFrame(WKWindowRef window
, CGRect frame
, bool display
);
68 GSEventRef
WKEventGetCurrentEvent(void);
70 void WKWindowPrepareForDrawing(WKWindowRef window
);
72 void WKWindowSetNeedsDisplay(WKWindowRef window
, bool flag
);
73 void WKWindowSetNeedsDisplayInRect(WKWindowRef window
, CGRect rect
);
75 void WKWindowDrawRect(WKWindowRef window
, CGRect dirtyRect
);
77 void WKWindowSetOffscreen(WKWindowRef window
, bool flag
);
79 void WKWindowSetTiledSurface(WKWindowRef window
, TiledSurface
*);
80 TiledSurface
* WKWindowGetTiledSurface(WKWindowRef window
);