1 module libwasm.bindings.MediaTrackConstraintSet;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 @safe:
7 nothrow:
8 
9 struct ConstrainBooleanParameters {
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 ConstrainBooleanParameters(libwasm_add__object());
18   }
19   void exact()(bool exact) {
20     Object_Call_bool__void(this.handle, "exact", exact);
21   }
22   bool exact()() {
23     return Object_Getter__bool(this.handle, "exact");
24   }
25   void ideal()(bool ideal) {
26     Object_Call_bool__void(this.handle, "ideal", ideal);
27   }
28   bool ideal()() {
29     return Object_Getter__bool(this.handle, "ideal");
30   }
31 }
32 struct ConstrainDOMStringParameters {
33   nothrow:
34   JsHandle handle;
35   alias handle this;
36   this(Handle h) {
37     this.handle = JsHandle(h);
38   }
39   static auto create() {
40     return ConstrainDOMStringParameters(libwasm_add__object());
41   }
42   void exact()(scope ref SumType!(string, Sequence!(string)) exact) {
43     Serialize_Object_VarArgCall!void(this.handle, "exact", "SumType!(string,Handle)", tuple(libwasm.sumtype.match!(((string v) => 0),((ref exact.Types[1] v) => 1))(exact),tuple(libwasm.sumtype.match!(((string v) => v),((ref exact.Types[1] v) => string.init))(exact),libwasm.sumtype.match!(((string v) => Handle.init),((ref exact.Types[1] v) => cast(Handle)v.handle))(exact))));
44   }
45   auto exact()() {
46     return Object_Getter__Handle(this.handle, "exact");
47   }
48   void ideal()(scope ref SumType!(string, Sequence!(string)) ideal) {
49     Serialize_Object_VarArgCall!void(this.handle, "ideal", "SumType!(string,Handle)", tuple(libwasm.sumtype.match!(((string v) => 0),((ref ideal.Types[1] v) => 1))(ideal),tuple(libwasm.sumtype.match!(((string v) => v),((ref ideal.Types[1] v) => string.init))(ideal),libwasm.sumtype.match!(((string v) => Handle.init),((ref ideal.Types[1] v) => cast(Handle)v.handle))(ideal))));
50   }
51   auto ideal()() {
52     return Object_Getter__Handle(this.handle, "ideal");
53   }
54 }
55 struct ConstrainDoubleRange {
56   nothrow:
57   JsHandle handle;
58   alias handle this;
59   this(Handle h) {
60     this.handle = JsHandle(h);
61   }
62   static auto create() {
63     return ConstrainDoubleRange(libwasm_add__object());
64   }
65   void min()(double min) {
66     Object_Call_double__void(this.handle, "min", min);
67   }
68   double min()() {
69     return Object_Getter__double(this.handle, "min");
70   }
71   void max()(double max) {
72     Object_Call_double__void(this.handle, "max", max);
73   }
74   double max()() {
75     return Object_Getter__double(this.handle, "max");
76   }
77   void exact()(double exact) {
78     Object_Call_double__void(this.handle, "exact", exact);
79   }
80   double exact()() {
81     return Object_Getter__double(this.handle, "exact");
82   }
83   void ideal()(double ideal) {
84     Object_Call_double__void(this.handle, "ideal", ideal);
85   }
86   double ideal()() {
87     return Object_Getter__double(this.handle, "ideal");
88   }
89 }
90 struct ConstrainLongRange {
91   nothrow:
92   JsHandle handle;
93   alias handle this;
94   this(Handle h) {
95     this.handle = JsHandle(h);
96   }
97   static auto create() {
98     return ConstrainLongRange(libwasm_add__object());
99   }
100   void min()(int min) {
101     Object_Call_int__void(this.handle, "min", min);
102   }
103   int min()() {
104     return Object_Getter__int(this.handle, "min");
105   }
106   void max()(int max) {
107     Object_Call_int__void(this.handle, "max", max);
108   }
109   int max()() {
110     return Object_Getter__int(this.handle, "max");
111   }
112   void exact()(int exact) {
113     Object_Call_int__void(this.handle, "exact", exact);
114   }
115   int exact()() {
116     return Object_Getter__int(this.handle, "exact");
117   }
118   void ideal()(int ideal) {
119     Object_Call_int__void(this.handle, "ideal", ideal);
120   }
121   int ideal()() {
122     return Object_Getter__int(this.handle, "ideal");
123   }
124 }
125 
126