1 module libwasm.bindings.MediaTrackSettings; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 @safe: 7 nothrow: 8 9 struct MediaTrackSettings { 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 MediaTrackSettings(libwasm_add__object()); 18 } 19 void width()(int width) { 20 Object_Call_int__void(this.handle, "width", width); 21 } 22 int width()() { 23 return Object_Getter__int(this.handle, "width"); 24 } 25 void height()(int height) { 26 Object_Call_int__void(this.handle, "height", height); 27 } 28 int height()() { 29 return Object_Getter__int(this.handle, "height"); 30 } 31 void frameRate()(double frameRate) { 32 Object_Call_double__void(this.handle, "frameRate", frameRate); 33 } 34 double frameRate()() { 35 return Object_Getter__double(this.handle, "frameRate"); 36 } 37 void facingMode()(string facingMode) { 38 Object_Call_string__void(this.handle, "facingMode", facingMode); 39 } 40 string facingMode()() { 41 return Object_Getter__string(this.handle, "facingMode"); 42 } 43 void deviceId()(string deviceId) { 44 Object_Call_string__void(this.handle, "deviceId", deviceId); 45 } 46 string deviceId()() { 47 return Object_Getter__string(this.handle, "deviceId"); 48 } 49 void echoCancellation()(bool echoCancellation) { 50 Object_Call_bool__void(this.handle, "echoCancellation", echoCancellation); 51 } 52 bool echoCancellation()() { 53 return Object_Getter__bool(this.handle, "echoCancellation"); 54 } 55 void noiseSuppression()(bool noiseSuppression) { 56 Object_Call_bool__void(this.handle, "noiseSuppression", noiseSuppression); 57 } 58 bool noiseSuppression()() { 59 return Object_Getter__bool(this.handle, "noiseSuppression"); 60 } 61 void autoGainControl()(bool autoGainControl) { 62 Object_Call_bool__void(this.handle, "autoGainControl", autoGainControl); 63 } 64 bool autoGainControl()() { 65 return Object_Getter__bool(this.handle, "autoGainControl"); 66 } 67 void channelCount()(int channelCount) { 68 Object_Call_int__void(this.handle, "channelCount", channelCount); 69 } 70 int channelCount()() { 71 return Object_Getter__int(this.handle, "channelCount"); 72 } 73 void mediaSource()(string mediaSource) { 74 Object_Call_string__void(this.handle, "mediaSource", mediaSource); 75 } 76 string mediaSource()() { 77 return Object_Getter__string(this.handle, "mediaSource"); 78 } 79 void browserWindow()(int browserWindow) { 80 Object_Call_int__void(this.handle, "browserWindow", browserWindow); 81 } 82 int browserWindow()() { 83 return Object_Getter__int(this.handle, "browserWindow"); 84 } 85 void scrollWithPage()(bool scrollWithPage) { 86 Object_Call_bool__void(this.handle, "scrollWithPage", scrollWithPage); 87 } 88 bool scrollWithPage()() { 89 return Object_Getter__bool(this.handle, "scrollWithPage"); 90 } 91 void viewportOffsetX()(int viewportOffsetX) { 92 Object_Call_int__void(this.handle, "viewportOffsetX", viewportOffsetX); 93 } 94 int viewportOffsetX()() { 95 return Object_Getter__int(this.handle, "viewportOffsetX"); 96 } 97 void viewportOffsetY()(int viewportOffsetY) { 98 Object_Call_int__void(this.handle, "viewportOffsetY", viewportOffsetY); 99 } 100 int viewportOffsetY()() { 101 return Object_Getter__int(this.handle, "viewportOffsetY"); 102 } 103 void viewportWidth()(int viewportWidth) { 104 Object_Call_int__void(this.handle, "viewportWidth", viewportWidth); 105 } 106 int viewportWidth()() { 107 return Object_Getter__int(this.handle, "viewportWidth"); 108 } 109 void viewportHeight()(int viewportHeight) { 110 Object_Call_int__void(this.handle, "viewportHeight", viewportHeight); 111 } 112 int viewportHeight()() { 113 return Object_Getter__int(this.handle, "viewportHeight"); 114 } 115 } 116 117