5 // Copyright (C) 2005, 2006, 2007, Apple Inc. All rights reserved.
8 #import <Foundation/Foundation.h>
10 #import "WAKClipView.h"
12 #import "WebCoreFrameView.h"
14 @interface WAKScroller
: WAKView
15 + (float)scrollerWidth
;
18 @interface WAKScrollView
: WAKView
<WebCoreFrameScrollView
>
20 WAKView
*_documentView
; // Only here so the ObjC instance stays around.
24 - (CGRect
)documentVisibleRect
;
25 - (void)setContentView
:(WAKClipView
*)aView
;
26 - (WAKClipView
*)contentView
;
28 - (void)setDocumentView
:(WAKView
*)aView
;
29 - (void)setHasVerticalScroller
:(BOOL
)flag
;
30 - (BOOL
)hasVerticalScroller
;
31 - (void)setHasHorizontalScroller
:(BOOL
)flag
;
32 - (BOOL
)hasHorizontalScroller
;
33 - (void)setVerticalScroller
:(WAKScroller
*)anObject
;
34 - (WAKScroller
*)verticalScroller
;
35 - (void)setHorizontalScroller
:(WAKScroller
*)anObject
;
36 - (WAKScroller
*)horizontalScroller
;
37 - (void)reflectScrolledClipView
:(WAKClipView
*)aClipView
;
38 - (void)setDrawsBackground
:(BOOL
)flag
;
39 - (float)verticalLineScroll
;
40 - (void)setLineScroll
:(float)aFloat
;
41 - (BOOL
)drawsBackground
;
42 - (float)horizontalLineScroll
;
44 - (void)setAllowsHorizontalScrolling
:(BOOL
)flag
;
45 - (BOOL
)allowsHorizontalScrolling
;
46 - (void)setAllowsVerticalScrolling
:(BOOL
)flag
;
47 - (BOOL
)allowsVerticalScrolling
;
48 - (void)setAllowsScrolling
:(BOOL
)flag
;
49 - (BOOL
)allowsScrolling
;
51 - (void)setDelegate
:(id
)delegate
;
54 - (CGPoint
)contentsPoint
;
55 - (CGRect
)actualDocumentVisibleRect
;
59 @interface
NSObject (WAKScrollViewDelegate
)
60 - (CGPoint
)contentsPointForScrollView
:(WAKScrollView
*)aScrollView
;
61 - (CGRect
)documentVisibleRectForScrollView
:(WAKScrollView
*)aScrollView
;
62 - (BOOL
)scrollView
:(WAKScrollView
*)scrollView shouldScrollToPoint
:(CGPoint
)point
;