1 module libwasm.bindings.HTMLFieldSetElement; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 import libwasm.bindings.HTMLCollection; 7 import libwasm.bindings.HTMLElement; 8 import libwasm.bindings.HTMLFormElement; 9 import libwasm.bindings.ValidityState; 10 11 @safe: 12 nothrow: 13 14 struct HTMLFieldSetElement { 15 nothrow: 16 libwasm.bindings.HTMLElement.HTMLElement _parent; 17 alias _parent this; 18 this(Handle h) { 19 _parent = .HTMLElement(h); 20 } 21 void disabled()(bool disabled) { 22 Object_Call_bool__void(this._parent, "disabled", disabled); 23 } 24 bool disabled()() { 25 return Object_Getter__bool(this._parent, "disabled"); 26 } 27 auto form()() { 28 return recastOpt!(HTMLFormElement)(Object_Getter__OptionalHandle(this._parent, "form")); 29 } 30 void name()(string name) { 31 Object_Call_string__void(this._parent, "name", name); 32 } 33 string name()() { 34 return Object_Getter__string(this._parent, "name"); 35 } 36 string type()() { 37 return Object_Getter__string(this._parent, "type"); 38 } 39 auto elements()() { 40 return HTMLCollection(Object_Getter__Handle(this._parent, "elements")); 41 } 42 bool willValidate()() { 43 return Object_Getter__bool(this._parent, "willValidate"); 44 } 45 auto validity()() { 46 return ValidityState(Object_Getter__Handle(this._parent, "validity")); 47 } 48 string validationMessage()() { 49 return Object_Getter__string(this._parent, "validationMessage"); 50 } 51 bool checkValidity()() { 52 return Object_Getter__bool(this._parent, "checkValidity"); 53 } 54 bool reportValidity()() { 55 return Object_Getter__bool(this._parent, "reportValidity"); 56 } 57 void setCustomValidity()(string error) { 58 Object_Call_string__void(this._parent, "setCustomValidity", error); 59 } 60 } 61 62