1 module libwasm.bindings.HTMLFormElement; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 import libwasm.bindings.Element; 7 import libwasm.bindings.HTMLCollection; 8 import libwasm.bindings.HTMLElement; 9 10 @safe: 11 nothrow: 12 13 struct HTMLFormElement { 14 nothrow: 15 libwasm.bindings.HTMLElement.HTMLElement _parent; 16 alias _parent this; 17 this(Handle h) { 18 _parent = .HTMLElement(h); 19 } 20 void acceptCharset()(string acceptCharset) { 21 Object_Call_string__void(this._parent, "acceptCharset", acceptCharset); 22 } 23 string acceptCharset()() { 24 return Object_Getter__string(this._parent, "acceptCharset"); 25 } 26 void action()(string action) { 27 Object_Call_string__void(this._parent, "action", action); 28 } 29 string action()() { 30 return Object_Getter__string(this._parent, "action"); 31 } 32 void autocomplete()(string autocomplete) { 33 Object_Call_string__void(this._parent, "autocomplete", autocomplete); 34 } 35 string autocomplete()() { 36 return Object_Getter__string(this._parent, "autocomplete"); 37 } 38 void enctype()(string enctype) { 39 Object_Call_string__void(this._parent, "enctype", enctype); 40 } 41 string enctype()() { 42 return Object_Getter__string(this._parent, "enctype"); 43 } 44 void encoding()(string encoding) { 45 Object_Call_string__void(this._parent, "encoding", encoding); 46 } 47 string encoding()() { 48 return Object_Getter__string(this._parent, "encoding"); 49 } 50 void method()(string method) { 51 Object_Call_string__void(this._parent, "method", method); 52 } 53 string method()() { 54 return Object_Getter__string(this._parent, "method"); 55 } 56 void name()(string name) { 57 Object_Call_string__void(this._parent, "name", name); 58 } 59 string name()() { 60 return Object_Getter__string(this._parent, "name"); 61 } 62 void noValidate()(bool noValidate) { 63 Object_Call_bool__void(this._parent, "noValidate", noValidate); 64 } 65 bool noValidate()() { 66 return Object_Getter__bool(this._parent, "noValidate"); 67 } 68 void target()(string target) { 69 Object_Call_string__void(this._parent, "target", target); 70 } 71 string target()() { 72 return Object_Getter__string(this._parent, "target"); 73 } 74 auto elements()() { 75 return HTMLCollection(Object_Getter__Handle(this._parent, "elements")); 76 } 77 int length()() { 78 return Object_Getter__int(this._parent, "length"); 79 } 80 auto opIndex()(uint index) { 81 return Element(Object_Call_uint__Handle(this._parent, "getter", index)); 82 } 83 auto opDispatch(uint index)() { 84 return Element(Object_Call_uint__Handle(this._parent, "getter", index)); 85 } 86 auto opIndex()(string name) { 87 return nsISupports(Object_Call_string__Handle(this._parent, "getter", name)); 88 } 89 auto opDispatch(string name)() { 90 return nsISupports(Object_Call_string__Handle(this._parent, "getter", name)); 91 } 92 void submit()() { 93 Object_Call__void(this._parent, "submit"); 94 } 95 void reset()() { 96 Object_Call__void(this._parent, "reset"); 97 } 98 bool checkValidity()() { 99 return Object_Getter__bool(this._parent, "checkValidity"); 100 } 101 bool reportValidity()() { 102 return Object_Getter__bool(this._parent, "reportValidity"); 103 } 104 } 105 106