Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSScrollView.d @ 60:62202ce0039f
Updated and fixed many modules to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 22 Dec 2008 15:10:19 +0100 |
parents | d8635bb48c7c |
children |
comparison
equal
deleted
inserted
replaced
59:83b0ad9d9238 | 60:62202ce0039f |
---|---|
37 super(id); | 37 super(id); |
38 } | 38 } |
39 | 39 |
40 public NSSize contentSize() { | 40 public NSSize contentSize() { |
41 NSSize result = NSSize(); | 41 NSSize result = NSSize(); |
42 OS.objc_msgSend_stret(result, this.id, OS.sel_contentSize); | 42 OS.objc_msgSend_stret(&result, this.id, OS.sel_contentSize); |
43 return result; | 43 return result; |
44 } | 44 } |
45 | 45 |
46 public static NSSize contentSizeForFrameSize(NSSize fSize, bool hFlag, bool vFlag, NSBorderType aType) { | 46 public static NSSize contentSizeForFrameSize(NSSize fSize, bool hFlag, bool vFlag, NSBorderType aType) { |
47 NSSize result = NSSize(); | 47 NSSize result = NSSize(); |
48 OS.objc_msgSend_stret(result, OS.class_NSScrollView, OS.sel_contentSizeForFrameSize_hasHorizontalScroller_hasVerticalScroller_borderType_, fSize, hFlag, vFlag, aType); | 48 OS.objc_msgSend_stret(&result, OS.class_NSScrollView, OS.sel_contentSizeForFrameSize_hasHorizontalScroller_hasVerticalScroller_borderType_, fSize, hFlag, vFlag, aType); |
49 return result; | 49 return result; |
50 } | 50 } |
51 | 51 |
52 public NSClipView contentView() { | 52 public NSClipView contentView() { |
53 objc.id result = OS.objc_msgSend(this.id, OS.sel_contentView); | 53 objc.id result = OS.objc_msgSend(this.id, OS.sel_contentView); |
59 return result !is null ? new NSView(result) : null; | 59 return result !is null ? new NSView(result) : null; |
60 } | 60 } |
61 | 61 |
62 public NSRect documentVisibleRect() { | 62 public NSRect documentVisibleRect() { |
63 NSRect result = NSRect(); | 63 NSRect result = NSRect(); |
64 OS.objc_msgSend_stret(result, this.id, OS.sel_documentVisibleRect); | 64 OS.objc_msgSend_stret(&result, this.id, OS.sel_documentVisibleRect); |
65 return result; | 65 return result; |
66 } | 66 } |
67 | 67 |
68 public static NSSize frameSizeForContentSize(NSSize cSize, bool hFlag, bool vFlag, NSBorderType aType) { | 68 public static NSSize frameSizeForContentSize(NSSize cSize, bool hFlag, bool vFlag, NSBorderType aType) { |
69 NSSize result = NSSize(); | 69 NSSize result = NSSize(); |
70 OS.objc_msgSend_stret(result, OS.class_NSScrollView, OS.sel_frameSizeForContentSize_hasHorizontalScroller_hasVerticalScroller_borderType_, cSize, hFlag, vFlag, aType); | 70 OS.objc_msgSend_stret(&result, OS.class_NSScrollView, OS.sel_frameSizeForContentSize_hasHorizontalScroller_hasVerticalScroller_borderType_, cSize, hFlag, vFlag, aType); |
71 return result; | 71 return result; |
72 } | 72 } |
73 | 73 |
74 public void reflectScrolledClipView(NSClipView cView) { | 74 public void reflectScrolledClipView(NSClipView cView) { |
75 OS.objc_msgSend(this.id, OS.sel_reflectScrolledClipView_, cView !is null ? cView.id : null); | 75 OS.objc_msgSend(this.id, OS.sel_reflectScrolledClipView_, cView !is null ? cView.id : null); |