1 module libwasm.bindings.MediaTrackSupportedConstraints; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 @safe: 7 nothrow: 8 9 struct MediaTrackSupportedConstraints { 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 MediaTrackSupportedConstraints(libwasm_add__object()); 18 } 19 void width()(bool width) { 20 Object_Call_bool__void(this.handle, "width", width); 21 } 22 bool width()() { 23 return Object_Getter__bool(this.handle, "width"); 24 } 25 void height()(bool height) { 26 Object_Call_bool__void(this.handle, "height", height); 27 } 28 bool height()() { 29 return Object_Getter__bool(this.handle, "height"); 30 } 31 void aspectRatio()(bool aspectRatio) { 32 Object_Call_bool__void(this.handle, "aspectRatio", aspectRatio); 33 } 34 bool aspectRatio()() { 35 return Object_Getter__bool(this.handle, "aspectRatio"); 36 } 37 void frameRate()(bool frameRate) { 38 Object_Call_bool__void(this.handle, "frameRate", frameRate); 39 } 40 bool frameRate()() { 41 return Object_Getter__bool(this.handle, "frameRate"); 42 } 43 void facingMode()(bool facingMode) { 44 Object_Call_bool__void(this.handle, "facingMode", facingMode); 45 } 46 bool facingMode()() { 47 return Object_Getter__bool(this.handle, "facingMode"); 48 } 49 void volume()(bool volume) { 50 Object_Call_bool__void(this.handle, "volume", volume); 51 } 52 bool volume()() { 53 return Object_Getter__bool(this.handle, "volume"); 54 } 55 void sampleRate()(bool sampleRate) { 56 Object_Call_bool__void(this.handle, "sampleRate", sampleRate); 57 } 58 bool sampleRate()() { 59 return Object_Getter__bool(this.handle, "sampleRate"); 60 } 61 void sampleSize()(bool sampleSize) { 62 Object_Call_bool__void(this.handle, "sampleSize", sampleSize); 63 } 64 bool sampleSize()() { 65 return Object_Getter__bool(this.handle, "sampleSize"); 66 } 67 void echoCancellation()(bool echoCancellation) { 68 Object_Call_bool__void(this.handle, "echoCancellation", echoCancellation); 69 } 70 bool echoCancellation()() { 71 return Object_Getter__bool(this.handle, "echoCancellation"); 72 } 73 void noiseSuppression()(bool noiseSuppression) { 74 Object_Call_bool__void(this.handle, "noiseSuppression", noiseSuppression); 75 } 76 bool noiseSuppression()() { 77 return Object_Getter__bool(this.handle, "noiseSuppression"); 78 } 79 void autoGainControl()(bool autoGainControl) { 80 Object_Call_bool__void(this.handle, "autoGainControl", autoGainControl); 81 } 82 bool autoGainControl()() { 83 return Object_Getter__bool(this.handle, "autoGainControl"); 84 } 85 void latency()(bool latency) { 86 Object_Call_bool__void(this.handle, "latency", latency); 87 } 88 bool latency()() { 89 return Object_Getter__bool(this.handle, "latency"); 90 } 91 void channelCount()(bool channelCount) { 92 Object_Call_bool__void(this.handle, "channelCount", channelCount); 93 } 94 bool channelCount()() { 95 return Object_Getter__bool(this.handle, "channelCount"); 96 } 97 void deviceId()(bool deviceId) { 98 Object_Call_bool__void(this.handle, "deviceId", deviceId); 99 } 100 bool deviceId()() { 101 return Object_Getter__bool(this.handle, "deviceId"); 102 } 103 void groupId()(bool groupId) { 104 Object_Call_bool__void(this.handle, "groupId", groupId); 105 } 106 bool groupId()() { 107 return Object_Getter__bool(this.handle, "groupId"); 108 } 109 void mediaSource()(bool mediaSource) { 110 Object_Call_bool__void(this.handle, "mediaSource", mediaSource); 111 } 112 bool mediaSource()() { 113 return Object_Getter__bool(this.handle, "mediaSource"); 114 } 115 void browserWindow()(bool browserWindow) { 116 Object_Call_bool__void(this.handle, "browserWindow", browserWindow); 117 } 118 bool browserWindow()() { 119 return Object_Getter__bool(this.handle, "browserWindow"); 120 } 121 void scrollWithPage()(bool scrollWithPage) { 122 Object_Call_bool__void(this.handle, "scrollWithPage", scrollWithPage); 123 } 124 bool scrollWithPage()() { 125 return Object_Getter__bool(this.handle, "scrollWithPage"); 126 } 127 void viewportOffsetX()(bool viewportOffsetX) { 128 Object_Call_bool__void(this.handle, "viewportOffsetX", viewportOffsetX); 129 } 130 bool viewportOffsetX()() { 131 return Object_Getter__bool(this.handle, "viewportOffsetX"); 132 } 133 void viewportOffsetY()(bool viewportOffsetY) { 134 Object_Call_bool__void(this.handle, "viewportOffsetY", viewportOffsetY); 135 } 136 bool viewportOffsetY()() { 137 return Object_Getter__bool(this.handle, "viewportOffsetY"); 138 } 139 void viewportWidth()(bool viewportWidth) { 140 Object_Call_bool__void(this.handle, "viewportWidth", viewportWidth); 141 } 142 bool viewportWidth()() { 143 return Object_Getter__bool(this.handle, "viewportWidth"); 144 } 145 void viewportHeight()(bool viewportHeight) { 146 Object_Call_bool__void(this.handle, "viewportHeight", viewportHeight); 147 } 148 bool viewportHeight()() { 149 return Object_Getter__bool(this.handle, "viewportHeight"); 150 } 151 } 152 153