comparison dwt/internal/cocoa/NSTextFieldCell.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
44 super(id); 44 super(id);
45 } 45 }
46 46
47 public NSArray allowedInputSourceLocales () 47 public NSArray allowedInputSourceLocales ()
48 { 48 {
49 objc.id result = OS.objc_msgSend(this.id, OS.sel_allowedInputSourceLocales); 49 objc.id result = OS.objc_msgSend(this.id_, OS.sel_allowedInputSourceLocales);
50 return result !is null ? new NSArray(result) : null; 50 return result !is null ? new NSArray(result) : null;
51 } 51 }
52 52
53 public NSColor backgroundColor () 53 public NSColor backgroundColor ()
54 { 54 {
55 objc.id result = OS.objc_msgSend(this.id, OS.sel_backgroundColor); 55 objc.id result = OS.objc_msgSend(this.id_, OS.sel_backgroundColor);
56 return result !is null ? new NSColor(result) : null; 56 return result !is null ? new NSColor(result) : null;
57 } 57 }
58 58
59 public NSTextFieldBezelStyle bezelStyle () 59 public NSTextFieldBezelStyle bezelStyle ()
60 { 60 {
61 return cast(NSTextFieldBezelStyle) OS.objc_msgSend(this.id, OS.sel_bezelStyle); 61 return cast(NSTextFieldBezelStyle) OS.objc_msgSend(this.id_, OS.sel_bezelStyle);
62 } 62 }
63 63
64 public bool drawsBackground () 64 public bool drawsBackground ()
65 { 65 {
66 return OS.objc_msgSend(this.id, OS.sel_drawsBackground) !is null; 66 return OS.objc_msgSend(this.id_, OS.sel_drawsBackground) !is null;
67 } 67 }
68 68
69 public NSAttributedString placeholderAttributedString () 69 public NSAttributedString placeholderAttributedString ()
70 { 70 {
71 objc.id result = OS.objc_msgSend(this.id, OS.sel_placeholderAttributedString); 71 objc.id result = OS.objc_msgSend(this.id_, OS.sel_placeholderAttributedString);
72 return result !is null ? new NSAttributedString(result) : null; 72 return result !is null ? new NSAttributedString(result) : null;
73 } 73 }
74 74
75 public NSString placeholderString () 75 public NSString placeholderString ()
76 { 76 {
77 objc.id result = OS.objc_msgSend(this.id, OS.sel_placeholderString); 77 objc.id result = OS.objc_msgSend(this.id_, OS.sel_placeholderString);
78 return result !is null ? new NSString(result) : null; 78 return result !is null ? new NSString(result) : null;
79 } 79 }
80 80
81 public void setAllowedInputSourceLocales (NSArray localeIdentifiers) 81 public void setAllowedInputSourceLocales (NSArray localeIdentifiers)
82 { 82 {
83 OS.objc_msgSend(this.id, OS.sel_setAllowedInputSourceLocales_1, localeIdentifiers !is null ? localeIdentifiers.id : null); 83 OS.objc_msgSend(this.id_, OS.sel_setAllowedInputSourceLocales_1, localeIdentifiers !is null ? localeIdentifiers.id_ : null);
84 } 84 }
85 85
86 public void setBackgroundColor (NSColor color) 86 public void setBackgroundColor (NSColor color)
87 { 87 {
88 OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color !is null ? color.id : null); 88 OS.objc_msgSend(this.id_, OS.sel_setBackgroundColor_1, color !is null ? color.id_ : null);
89 } 89 }
90 90
91 public void setBezelStyle (NSTextFieldBezelStyle style) 91 public void setBezelStyle (NSTextFieldBezelStyle style)
92 { 92 {
93 OS.objc_msgSend(this.id, OS.sel_setBezelStyle_1, style); 93 OS.objc_msgSend(this.id_, OS.sel_setBezelStyle_1, style);
94 } 94 }
95 95
96 public void setDrawsBackground (bool flag) 96 public void setDrawsBackground (bool flag)
97 { 97 {
98 OS.objc_msgSend(this.id, OS.sel_setDrawsBackground_1, flag); 98 OS.objc_msgSend(this.id_, OS.sel_setDrawsBackground_1, flag);
99 } 99 }
100 100
101 public void setPlaceholderAttributedString (NSAttributedString string) 101 public void setPlaceholderAttributedString (NSAttributedString string)
102 { 102 {
103 OS.objc_msgSend(this.id, OS.sel_setPlaceholderAttributedString_1, string !is null ? string.id : null); 103 OS.objc_msgSend(this.id_, OS.sel_setPlaceholderAttributedString_1, string !is null ? string.id_ : null);
104 } 104 }
105 105
106 public void setPlaceholderString (NSString string) 106 public void setPlaceholderString (NSString string)
107 { 107 {
108 OS.objc_msgSend(this.id, OS.sel_setPlaceholderString_1, string !is null ? string.id : null); 108 OS.objc_msgSend(this.id_, OS.sel_setPlaceholderString_1, string !is null ? string.id_ : null);
109 } 109 }
110 110
111 public void setTextColor (NSColor color) 111 public void setTextColor (NSColor color)
112 { 112 {
113 OS.objc_msgSend(this.id, OS.sel_setTextColor_1, color !is null ? color.id : null); 113 OS.objc_msgSend(this.id_, OS.sel_setTextColor_1, color !is null ? color.id_ : null);
114 } 114 }
115 115
116 public NSText setUpFieldEditorAttributes (NSText textObj) 116 public NSText setUpFieldEditorAttributes (NSText textObj)
117 { 117 {
118 objc.id result = OS.objc_msgSend(this.id, OS.sel_setUpFieldEditorAttributes_1, textObj !is null ? textObj.id : null); 118 objc.id result = OS.objc_msgSend(this.id_, OS.sel_setUpFieldEditorAttributes_1, textObj !is null ? textObj.id_ : null);
119 return result !is null ? new NSText(result) : null; 119 return result !is null ? new NSText(result) : null;
120 } 120 }
121 121
122 public void setWantsNotificationForMarkedText (bool flag) 122 public void setWantsNotificationForMarkedText (bool flag)
123 { 123 {
124 OS.objc_msgSend(this.id, OS.sel_setWantsNotificationForMarkedText_1, flag); 124 OS.objc_msgSend(this.id_, OS.sel_setWantsNotificationForMarkedText_1, flag);
125 } 125 }
126 126
127 public NSColor textColor () 127 public NSColor textColor ()
128 { 128 {
129 objc.id result = OS.objc_msgSend(this.id, OS.sel_textColor); 129 objc.id result = OS.objc_msgSend(this.id_, OS.sel_textColor);
130 return result !is null ? new NSColor(result) : null; 130 return result !is null ? new NSColor(result) : null;
131 } 131 }
132 132
133 } 133 }