1 module libwasm.bindings.HTMLTextAreaElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.HTMLElement;
7 import libwasm.bindings.HTMLFormElement;
8 import libwasm.bindings.HTMLInputElement;
9 import libwasm.bindings.NodeList;
10 import libwasm.bindings.ValidityState;
11 
12 @safe:
13 nothrow:
14 
15 struct HTMLTextAreaElement {
16   nothrow:
17   libwasm.bindings.HTMLElement.HTMLElement _parent;
18   alias _parent this;
19   this(Handle h) {
20     _parent = .HTMLElement(h);
21   }
22   void autocomplete()(string autocomplete) {
23     Object_Call_string__void(this._parent, "autocomplete", autocomplete);
24   }
25   string autocomplete()() {
26     return Object_Getter__string(this._parent, "autocomplete");
27   }
28   void autofocus()(bool autofocus) {
29     Object_Call_bool__void(this._parent, "autofocus", autofocus);
30   }
31   bool autofocus()() {
32     return Object_Getter__bool(this._parent, "autofocus");
33   }
34   void cols()(uint cols) {
35     Object_Call_uint__void(this._parent, "cols", cols);
36   }
37   uint cols()() {
38     return Object_Getter__uint(this._parent, "cols");
39   }
40   void disabled()(bool disabled) {
41     Object_Call_bool__void(this._parent, "disabled", disabled);
42   }
43   bool disabled()() {
44     return Object_Getter__bool(this._parent, "disabled");
45   }
46   auto form()() {
47     return recastOpt!(HTMLFormElement)(Object_Getter__OptionalHandle(this._parent, "form"));
48   }
49   void maxLength()(int maxLength) {
50     Object_Call_int__void(this._parent, "maxLength", maxLength);
51   }
52   int maxLength()() {
53     return Object_Getter__int(this._parent, "maxLength");
54   }
55   void minLength()(int minLength) {
56     Object_Call_int__void(this._parent, "minLength", minLength);
57   }
58   int minLength()() {
59     return Object_Getter__int(this._parent, "minLength");
60   }
61   void name()(string name) {
62     Object_Call_string__void(this._parent, "name", name);
63   }
64   string name()() {
65     return Object_Getter__string(this._parent, "name");
66   }
67   void placeholder()(string placeholder) {
68     Object_Call_string__void(this._parent, "placeholder", placeholder);
69   }
70   string placeholder()() {
71     return Object_Getter__string(this._parent, "placeholder");
72   }
73   void readOnly()(bool readOnly) {
74     Object_Call_bool__void(this._parent, "readOnly", readOnly);
75   }
76   bool readOnly()() {
77     return Object_Getter__bool(this._parent, "readOnly");
78   }
79   void required()(bool required) {
80     Object_Call_bool__void(this._parent, "required", required);
81   }
82   bool required()() {
83     return Object_Getter__bool(this._parent, "required");
84   }
85   void rows()(uint rows) {
86     Object_Call_uint__void(this._parent, "rows", rows);
87   }
88   uint rows()() {
89     return Object_Getter__uint(this._parent, "rows");
90   }
91   void wrap()(string wrap) {
92     Object_Call_string__void(this._parent, "wrap", wrap);
93   }
94   string wrap()() {
95     return Object_Getter__string(this._parent, "wrap");
96   }
97   string type()() {
98     return Object_Getter__string(this._parent, "type");
99   }
100   void defaultValue()(string defaultValue) {
101     Object_Call_string__void(this._parent, "defaultValue", defaultValue);
102   }
103   string defaultValue()() {
104     return Object_Getter__string(this._parent, "defaultValue");
105   }
106   void value()(string value) {
107     Object_Call_string__void(this._parent, "value", value);
108   }
109   string value()() {
110     return Object_Getter__string(this._parent, "value");
111   }
112   uint textLength()() {
113     return Object_Getter__uint(this._parent, "textLength");
114   }
115   bool willValidate()() {
116     return Object_Getter__bool(this._parent, "willValidate");
117   }
118   auto validity()() {
119     return ValidityState(Object_Getter__Handle(this._parent, "validity"));
120   }
121   string validationMessage()() {
122     return Object_Getter__string(this._parent, "validationMessage");
123   }
124   bool checkValidity()() {
125     return Object_Getter__bool(this._parent, "checkValidity");
126   }
127   bool reportValidity()() {
128     return Object_Getter__bool(this._parent, "reportValidity");
129   }
130   void setCustomValidity()(string error) {
131     Object_Call_string__void(this._parent, "setCustomValidity", error);
132   }
133   auto labels()() {
134     return NodeList(Object_Getter__Handle(this._parent, "labels"));
135   }
136   void select()() {
137     Object_Call__void(this._parent, "select");
138   }
139   void selectionStart(T0)(scope auto ref Optional!(T0) selectionStart) if (isTOrPointer!(T0, uint)) {
140     Serialize_Object_VarArgCall!void(this._parent, "selectionStart", "Optional!(uint)", tuple(!selectionStart.empty, selectionStart.front));
141   }
142   Optional!(uint) selectionStart()() {
143     return Object_Getter__OptionalUint(this._parent, "selectionStart");
144   }
145   void selectionEnd(T0)(scope auto ref Optional!(T0) selectionEnd) if (isTOrPointer!(T0, uint)) {
146     Serialize_Object_VarArgCall!void(this._parent, "selectionEnd", "Optional!(uint)", tuple(!selectionEnd.empty, selectionEnd.front));
147   }
148   Optional!(uint) selectionEnd()() {
149     return Object_Getter__OptionalUint(this._parent, "selectionEnd");
150   }
151   void selectionDirection(T0)(scope auto ref Optional!(T0) selectionDirection) if (isTOrPointer!(T0, string)) {
152     Serialize_Object_VarArgCall!void(this._parent, "selectionDirection", "Optional!(string)", tuple(!selectionDirection.empty, selectionDirection.front));
153   }
154   Optional!(string) selectionDirection()() {
155     return Object_Getter__OptionalString(this._parent, "selectionDirection");
156   }
157   void setRangeText()(string replacement) {
158     Object_Call_string__void(this._parent, "setRangeText", replacement);
159   }
160   void setRangeText()(string replacement, uint start, uint end, SelectionMode selectionMode /* = "preserve" */) {
161     Serialize_Object_VarArgCall!void(this._parent, "setRangeText", "string;uint;uint;Enum", tuple(replacement, start, end, selectionMode));
162   }
163   void setRangeText()(string replacement, uint start, uint end) {
164     Serialize_Object_VarArgCall!void(this._parent, "setRangeText", "string;uint;uint", tuple(replacement, start, end));
165   }
166   void setSelectionRange()(uint start, uint end, string direction) {
167     Serialize_Object_VarArgCall!void(this._parent, "setSelectionRange", "uint;uint;string", tuple(start, end, direction));
168   }
169   void setSelectionRange()(uint start, uint end) {
170     Serialize_Object_VarArgCall!void(this._parent, "setSelectionRange", "uint;uint", tuple(start, end));
171   }
172   auto controllers()() {
173     return XULControllers(Object_Getter__Handle(this._parent, "controllers"));
174   }
175   void previewValue()(string previewValue) {
176     Object_Call_string__void(this._parent, "previewValue", previewValue);
177   }
178   string previewValue()() {
179     return Object_Getter__string(this._parent, "previewValue");
180   }
181   auto editor()() {
182     return recastOpt!(nsIEditor)(Object_Getter__OptionalHandle(this._parent, "editor"));
183   }
184   bool isInputEventTarget()() {
185     return Object_Getter__bool(this._parent, "isInputEventTarget");
186   }
187   void setUserInput()(string input) {
188     Object_Call_string__void(this._parent, "setUserInput", input);
189   }
190 }
191 
192