comparison dwt/internal/cocoa/WebFrameView.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children 1a8b3cb347e0
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 module dwt.internal.cocoa;
2
3 public class WebFrameView : NSObject {
4
5 public WebFrameView() {
6 super();
7 }
8
9 public WebFrameView(int id) {
10 super(id);
11 }
12
13 public bool allowsScrolling() {
14 return OS.objc_msgSend(this.id, OS.sel_allowsScrolling) !is 0;
15 }
16
17 public bool canPrintHeadersAndFooters() {
18 return OS.objc_msgSend(this.id, OS.sel_canPrintHeadersAndFooters) !is 0;
19 }
20
21 public NSView documentView() {
22 int result = OS.objc_msgSend(this.id, OS.sel_documentView);
23 return result !is 0 ? new NSView (result) : null;
24 }
25
26 public bool documentViewShouldHandlePrint() {
27 return OS.objc_msgSend(this.id, OS.sel_documentViewShouldHandlePrint) !is 0;
28 }
29
30 public void printDocumentView() {
31 OS.objc_msgSend(this.id, OS.sel_printDocumentView);
32 }
33
34 public NSPrintOperation printOperationWithPrintInfo(NSPrintInfo printInfo) {
35 int result = OS.objc_msgSend(this.id, OS.sel_printOperationWithPrintInfo_1, printInfo !is null ? printInfo.id : 0);
36 return result !is 0 ? new NSPrintOperation(result) : null;
37 }
38
39 public void setAllowsScrolling(bool flag) {
40 OS.objc_msgSend(this.id, OS.sel_setAllowsScrolling_1, flag);
41 }
42
43 public WebFrame webFrame() {
44 int result = OS.objc_msgSend(this.id, OS.sel_webFrame);
45 return result !is 0 ? new WebFrame(result) : null;
46 }
47
48 }