1 module libwasm.bindings.FakePluginTagInit; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 @safe: 7 nothrow: 8 9 struct FakePluginMimeEntry { 10 nothrow: 11 JsHandle handle; 12 alias handle this; 13 this(Handle h) { 14 this.handle = JsHandle(h); 15 } 16 static auto create() { 17 return FakePluginMimeEntry(libwasm_add__object()); 18 } 19 void type()(string type) { 20 Object_Call_string__void(this.handle, "type", type); 21 } 22 string type()() { 23 return Object_Getter__string(this.handle, "type"); 24 } 25 void description()(string description) { 26 Object_Call_string__void(this.handle, "description", description); 27 } 28 string description()() { 29 return Object_Getter__string(this.handle, "description"); 30 } 31 void extension()(string extension) { 32 Object_Call_string__void(this.handle, "extension", extension); 33 } 34 string extension()() { 35 return Object_Getter__string(this.handle, "extension"); 36 } 37 } 38 struct FakePluginTagInit { 39 nothrow: 40 JsHandle handle; 41 alias handle this; 42 this(Handle h) { 43 this.handle = JsHandle(h); 44 } 45 static auto create() { 46 return FakePluginTagInit(libwasm_add__object()); 47 } 48 void handlerURI()(string handlerURI) { 49 Object_Call_string__void(this.handle, "handlerURI", handlerURI); 50 } 51 string handlerURI()() { 52 return Object_Getter__string(this.handle, "handlerURI"); 53 } 54 void mimeEntries()(scope ref Sequence!(FakePluginMimeEntry) mimeEntries) { 55 Object_Call_Handle__void(this.handle, "mimeEntries", mimeEntries.handle); 56 } 57 auto mimeEntries()() { 58 return Sequence!(FakePluginMimeEntry)(Object_Getter__Handle(this.handle, "mimeEntries")); 59 } 60 void niceName()(string niceName) { 61 Object_Call_string__void(this.handle, "niceName", niceName); 62 } 63 string niceName()() { 64 return Object_Getter__string(this.handle, "niceName"); 65 } 66 void fullPath()(string fullPath) { 67 Object_Call_string__void(this.handle, "fullPath", fullPath); 68 } 69 string fullPath()() { 70 return Object_Getter__string(this.handle, "fullPath"); 71 } 72 void name()(string name) { 73 Object_Call_string__void(this.handle, "name", name); 74 } 75 string name()() { 76 return Object_Getter__string(this.handle, "name"); 77 } 78 void description()(string description) { 79 Object_Call_string__void(this.handle, "description", description); 80 } 81 string description()() { 82 return Object_Getter__string(this.handle, "description"); 83 } 84 void fileName()(string fileName) { 85 Object_Call_string__void(this.handle, "fileName", fileName); 86 } 87 string fileName()() { 88 return Object_Getter__string(this.handle, "fileName"); 89 } 90 void version_()(string version_) { 91 Object_Call_string__void(this.handle, "version", version_); 92 } 93 string version_()() { 94 return Object_Getter__string(this.handle, "version"); 95 } 96 void sandboxScript()(string sandboxScript) { 97 Object_Call_string__void(this.handle, "sandboxScript", sandboxScript); 98 } 99 string sandboxScript()() { 100 return Object_Getter__string(this.handle, "sandboxScript"); 101 } 102 } 103 104