Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSTabViewItem.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 |
---|---|
48 super(id); | 48 super(id); |
49 } | 49 } |
50 | 50 |
51 public NSColor color () | 51 public NSColor color () |
52 { | 52 { |
53 objc.id result = OS.objc_msgSend(this.id, OS.sel_color); | 53 objc.id result = OS.objc_msgSend(this.id_, OS.sel_color); |
54 return result !is null ? new NSColor(result) : null; | 54 return result !is null ? new NSColor(result) : null; |
55 } | 55 } |
56 | 56 |
57 public void drawLabel (bool shouldTruncateLabel, NSRect labelRect) | 57 public void drawLabel (bool shouldTruncateLabel, NSRect labelRect) |
58 { | 58 { |
59 OS.objc_msgSend(this.id, OS.sel_drawLabel_1inRect_1, shouldTruncateLabel, labelRect); | 59 OS.objc_msgSend(this.id_, OS.sel_drawLabel_1inRect_1, shouldTruncateLabel, labelRect); |
60 } | 60 } |
61 | 61 |
62 public id identifier () | 62 public id identifier () |
63 { | 63 { |
64 objc.id result = OS.objc_msgSend(this.id, OS.sel_identifier); | 64 objc.id result = OS.objc_msgSend(this.id_, OS.sel_identifier); |
65 return result !is null ? new id(result) : null; | 65 return result !is null ? new id(result) : null; |
66 } | 66 } |
67 | 67 |
68 public NSTabViewItem initWithIdentifier (id identifier) | 68 public NSTabViewItem initWithIdentifier (id identifier) |
69 { | 69 { |
70 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIdentifier_1, identifier !is null ? identifier.id : null); | 70 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIdentifier_1, identifier !is null ? identifier.id_ : null); |
71 return result !is null ? this : null; | 71 return result !is null ? this : null; |
72 } | 72 } |
73 | 73 |
74 public NSTabViewItem initialFirstResponder () | 74 public NSTabViewItem initialFirstResponder () |
75 { | 75 { |
76 objc.id result = OS.objc_msgSend(this.id, OS.sel_initialFirstResponder); | 76 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initialFirstResponder); |
77 return result !is null ? this : null; | 77 return result !is null ? this : null; |
78 } | 78 } |
79 | 79 |
80 public NSString label () | 80 public NSString label () |
81 { | 81 { |
82 objc.id result = OS.objc_msgSend(this.id, OS.sel_label); | 82 objc.id result = OS.objc_msgSend(this.id_, OS.sel_label); |
83 return result !is null ? new NSString(result) : null; | 83 return result !is null ? new NSString(result) : null; |
84 } | 84 } |
85 | 85 |
86 public void setColor (NSColor color) | 86 public void setColor (NSColor color) |
87 { | 87 { |
88 OS.objc_msgSend(this.id, OS.sel_setColor_1, color !is null ? color.id : null); | 88 OS.objc_msgSend(this.id_, OS.sel_setColor_1, color !is null ? color.id_ : null); |
89 } | 89 } |
90 | 90 |
91 public void setIdentifier (id identifier) | 91 public void setIdentifier (id identifier) |
92 { | 92 { |
93 OS.objc_msgSend(this.id, OS.sel_setIdentifier_1, identifier !is null ? identifier.id : null); | 93 OS.objc_msgSend(this.id_, OS.sel_setIdentifier_1, identifier !is null ? identifier.id_ : null); |
94 } | 94 } |
95 | 95 |
96 public void setInitialFirstResponder (NSView view) | 96 public void setInitialFirstResponder (NSView view) |
97 { | 97 { |
98 OS.objc_msgSend(this.id, OS.sel_setInitialFirstResponder_1, view !is null ? view.id : null); | 98 OS.objc_msgSend(this.id_, OS.sel_setInitialFirstResponder_1, view !is null ? view.id_ : null); |
99 } | 99 } |
100 | 100 |
101 public void setLabel (NSString label) | 101 public void setLabel (NSString label) |
102 { | 102 { |
103 OS.objc_msgSend(this.id, OS.sel_setLabel_1, label !is null ? label.id : null); | 103 OS.objc_msgSend(this.id_, OS.sel_setLabel_1, label !is null ? label.id_ : null); |
104 } | 104 } |
105 | 105 |
106 public void setView (NSView view) | 106 public void setView (NSView view) |
107 { | 107 { |
108 OS.objc_msgSend(this.id, OS.sel_setView_1, view !is null ? view.id : null); | 108 OS.objc_msgSend(this.id_, OS.sel_setView_1, view !is null ? view.id_ : null); |
109 } | 109 } |
110 | 110 |
111 public NSSize sizeOfLabel (bool computeMin) | 111 public NSSize sizeOfLabel (bool computeMin) |
112 { | 112 { |
113 NSSize result; | 113 NSSize result; |
114 OS.objc_msgSend_stret(result, this.id, OS.sel_sizeOfLabel_1, computeMin); | 114 OS.objc_msgSend_stret(&result, this.id_, OS.sel_sizeOfLabel_1, computeMin); |
115 return result; | 115 return result; |
116 } | 116 } |
117 | 117 |
118 public NSTabState tabState () | 118 public NSTabState tabState () |
119 { | 119 { |
120 return cast(NSTabState) OS.objc_msgSend(this.id, OS.sel_tabState); | 120 return cast(NSTabState) OS.objc_msgSend(this.id_, OS.sel_tabState); |
121 } | 121 } |
122 | 122 |
123 public NSTabView tabView () | 123 public NSTabView tabView () |
124 { | 124 { |
125 objc.id result = OS.objc_msgSend(this.id, OS.sel_tabView); | 125 objc.id result = OS.objc_msgSend(this.id_, OS.sel_tabView); |
126 return result !is null ? new NSTabView(result) : null; | 126 return result !is null ? new NSTabView(result) : null; |
127 } | 127 } |
128 | 128 |
129 public id view () | 129 public id view () |
130 { | 130 { |
131 objc.id result = OS.objc_msgSend(this.id, OS.sel_view); | 131 objc.id result = OS.objc_msgSend(this.id_, OS.sel_view); |
132 return result !is null ? new id(result) : null; | 132 return result !is null ? new id(result) : null; |
133 } | 133 } |
134 | 134 |
135 } | 135 } |