comparison dwt/internal/cocoa/NSSplitView.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
49 super(id); 49 super(id);
50 } 50 }
51 51
52 public void adjustSubviews () 52 public void adjustSubviews ()
53 { 53 {
54 OS.objc_msgSend(this.id, OS.sel_adjustSubviews); 54 OS.objc_msgSend(this.id_, OS.sel_adjustSubviews);
55 } 55 }
56 56
57 public NSString autosaveName () 57 public NSString autosaveName ()
58 { 58 {
59 objc.id result = OS.objc_msgSend(this.id, OS.sel_autosaveName); 59 objc.id result = OS.objc_msgSend(this.id_, OS.sel_autosaveName);
60 return result !is null ? new NSString(result) : null; 60 return result !is null ? new NSString(result) : null;
61 } 61 }
62 62
63 public id delegatee () 63 public id delegatee ()
64 { 64 {
65 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 65 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
66 return result !is null ? new id(result) : null; 66 return result !is null ? new id(result) : null;
67 } 67 }
68 68
69 public NSColor dividerColor () 69 public NSColor dividerColor ()
70 { 70 {
71 objc.id result = OS.objc_msgSend(this.id, OS.sel_dividerColor); 71 objc.id result = OS.objc_msgSend(this.id_, OS.sel_dividerColor);
72 return result !is null ? new NSColor(result) : null; 72 return result !is null ? new NSColor(result) : null;
73 } 73 }
74 74
75 public NSSplitViewDividerStyle dividerStyle () 75 public NSSplitViewDividerStyle dividerStyle ()
76 { 76 {
77 return cast(NSSplitViewDividerStyle) OS.objc_msgSend(this.id, OS.sel_dividerStyle); 77 return cast(NSSplitViewDividerStyle) OS.objc_msgSend(this.id_, OS.sel_dividerStyle);
78 } 78 }
79 79
80 public CGFloat dividerThickness () 80 public CGFloat dividerThickness ()
81 { 81 {
82 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_dividerThickness); 82 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_dividerThickness);
83 } 83 }
84 84
85 public void drawDividerInRect (NSRect rect) 85 public void drawDividerInRect (NSRect rect)
86 { 86 {
87 OS.objc_msgSend(this.id, OS.sel_drawDividerInRect_1, rect); 87 OS.objc_msgSend(this.id_, OS.sel_drawDividerInRect_1, rect);
88 } 88 }
89 89
90 public bool isPaneSplitter () 90 public bool isPaneSplitter ()
91 { 91 {
92 return OS.objc_msgSend(this.id, OS.sel_isPaneSplitter) !is null; 92 return OS.objc_msgSend(this.id_, OS.sel_isPaneSplitter) !is null;
93 } 93 }
94 94
95 public bool isSubviewCollapsed (NSView subview) 95 public bool isSubviewCollapsed (NSView subview)
96 { 96 {
97 return OS.objc_msgSend(this.id, OS.sel_isSubviewCollapsed_1, subview !is null ? subview.id : null) !is null; 97 return OS.objc_msgSend(this.id_, OS.sel_isSubviewCollapsed_1, subview !is null ? subview.id_ : null) !is null;
98 } 98 }
99 99
100 public bool isVertical () 100 public bool isVertical ()
101 { 101 {
102 return OS.objc_msgSend(this.id, OS.sel_isVertical) !is null; 102 return OS.objc_msgSend(this.id_, OS.sel_isVertical) !is null;
103 } 103 }
104 104
105 public CGFloat maxPossiblePositionOfDividerAtIndex (NSInteger dividerIndex) 105 public CGFloat maxPossiblePositionOfDividerAtIndex (NSInteger dividerIndex)
106 { 106 {
107 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_maxPossiblePositionOfDividerAtIndex_1, dividerIndex); 107 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_maxPossiblePositionOfDividerAtIndex_1, dividerIndex);
108 } 108 }
109 109
110 public CGFloat minPossiblePositionOfDividerAtIndex (NSInteger dividerIndex) 110 public CGFloat minPossiblePositionOfDividerAtIndex (NSInteger dividerIndex)
111 { 111 {
112 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_minPossiblePositionOfDividerAtIndex_1, dividerIndex); 112 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_minPossiblePositionOfDividerAtIndex_1, dividerIndex);
113 } 113 }
114 114
115 public void setAutosaveName (NSString autosaveName) 115 public void setAutosaveName (NSString autosaveName)
116 { 116 {
117 OS.objc_msgSend(this.id, OS.sel_setAutosaveName_1, autosaveName !is null ? autosaveName.id : null); 117 OS.objc_msgSend(this.id_, OS.sel_setAutosaveName_1, autosaveName !is null ? autosaveName.id_ : null);
118 } 118 }
119 119
120 public void setDelegate (id delegatee) 120 public void setDelegate (id delegatee)
121 { 121 {
122 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); 122 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null);
123 } 123 }
124 124
125 public void setDividerStyle (NSSplitViewDividerStyle dividerStyle) 125 public void setDividerStyle (NSSplitViewDividerStyle dividerStyle)
126 { 126 {
127 OS.objc_msgSend(this.id, OS.sel_setDividerStyle_1, dividerStyle); 127 OS.objc_msgSend(this.id_, OS.sel_setDividerStyle_1, dividerStyle);
128 } 128 }
129 129
130 public void setIsPaneSplitter (bool flag) 130 public void setIsPaneSplitter (bool flag)
131 { 131 {
132 OS.objc_msgSend(this.id, OS.sel_setIsPaneSplitter_1, flag); 132 OS.objc_msgSend(this.id_, OS.sel_setIsPaneSplitter_1, flag);
133 } 133 }
134 134
135 public void setPosition (CGFloat position, NSInteger dividerIndex) 135 public void setPosition (CGFloat position, NSInteger dividerIndex)
136 { 136 {
137 OS.objc_msgSend(this.id, OS.sel_setPosition_1ofDividerAtIndex_1, position, dividerIndex); 137 OS.objc_msgSend(this.id_, OS.sel_setPosition_1ofDividerAtIndex_1, position, dividerIndex);
138 } 138 }
139 139
140 public void setVertical (bool flag) 140 public void setVertical (bool flag)
141 { 141 {
142 OS.objc_msgSend(this.id, OS.sel_setVertical_1, flag); 142 OS.objc_msgSend(this.id_, OS.sel_setVertical_1, flag);
143 } 143 }
144 144
145 } 145 }