1 module libwasm.bindings.VTTRegion; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 @safe: 7 nothrow: 8 9 enum ScrollSetting { 10 none, 11 up 12 } 13 struct VTTRegion { 14 nothrow: 15 JsHandle handle; 16 alias handle this; 17 this(Handle h) { 18 this.handle = JsHandle(h); 19 } 20 void id()(string id) { 21 Object_Call_string__void(this.handle, "id", id); 22 } 23 string id()() { 24 return Object_Getter__string(this.handle, "id"); 25 } 26 void width()(double width) { 27 Object_Call_double__void(this.handle, "width", width); 28 } 29 double width()() { 30 return Object_Getter__double(this.handle, "width"); 31 } 32 void lines()(int lines) { 33 Object_Call_int__void(this.handle, "lines", lines); 34 } 35 int lines()() { 36 return Object_Getter__int(this.handle, "lines"); 37 } 38 void regionAnchorX()(double regionAnchorX) { 39 Object_Call_double__void(this.handle, "regionAnchorX", regionAnchorX); 40 } 41 double regionAnchorX()() { 42 return Object_Getter__double(this.handle, "regionAnchorX"); 43 } 44 void regionAnchorY()(double regionAnchorY) { 45 Object_Call_double__void(this.handle, "regionAnchorY", regionAnchorY); 46 } 47 double regionAnchorY()() { 48 return Object_Getter__double(this.handle, "regionAnchorY"); 49 } 50 void viewportAnchorX()(double viewportAnchorX) { 51 Object_Call_double__void(this.handle, "viewportAnchorX", viewportAnchorX); 52 } 53 double viewportAnchorX()() { 54 return Object_Getter__double(this.handle, "viewportAnchorX"); 55 } 56 void viewportAnchorY()(double viewportAnchorY) { 57 Object_Call_double__void(this.handle, "viewportAnchorY", viewportAnchorY); 58 } 59 double viewportAnchorY()() { 60 return Object_Getter__double(this.handle, "viewportAnchorY"); 61 } 62 void scroll()(ScrollSetting scroll) { 63 Object_Call_int__void(this.handle, "scroll", scroll); 64 } 65 ScrollSetting scroll()() { 66 return Object_Getter__int(this.handle, "scroll"); 67 } 68 } 69 70