]> git.saurik.com Git - iphone-api.git/blob - WebCore/WAKScrollView.h
Adding the WebCore headers (for Cydget).
[iphone-api.git] / WebCore / WAKScrollView.h
1 //
2 // WAKScrollView.h
3 // WebCore
4 //
5 // Copyright (C) 2005, 2006, 2007, Apple Inc. All rights reserved.
6 //
7
8 #import <Foundation/Foundation.h>
9
10 #import "WAKClipView.h"
11 #import "WAKView.h"
12 #import "WebCoreFrameView.h"
13
14 @interface WAKScroller : WAKView
15 + (float)scrollerWidth;
16 @end
17
18 @interface WAKScrollView : WAKView <WebCoreFrameScrollView>
19 {
20 WAKView *_documentView; // Only here so the ObjC instance stays around.
21 id _delegate;
22 }
23
24 - (CGRect)documentVisibleRect;
25 - (void)setContentView:(WAKClipView *)aView;
26 - (WAKClipView *)contentView;
27 - (id)documentView;
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;
43
44 - (void)setAllowsHorizontalScrolling:(BOOL)flag;
45 - (BOOL)allowsHorizontalScrolling;
46 - (void)setAllowsVerticalScrolling:(BOOL)flag;
47 - (BOOL)allowsVerticalScrolling;
48 - (void)setAllowsScrolling:(BOOL)flag;
49 - (BOOL)allowsScrolling;
50
51 - (void)setDelegate:(id)delegate;
52 - (id)delegate;
53
54 - (CGPoint)contentsPoint;
55 - (CGRect)actualDocumentVisibleRect;
56
57 @end
58
59 @interface NSObject (WAKScrollViewDelegate)
60 - (CGPoint)contentsPointForScrollView:(WAKScrollView *)aScrollView;
61 - (CGRect)documentVisibleRectForScrollView:(WAKScrollView *)aScrollView;
62 - (BOOL)scrollView:(WAKScrollView *)scrollView shouldScrollToPoint:(CGPoint)point;
63 @end