1 module libwasm.bindings.HTMLVideoElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.HTMLMediaElement;
7 import libwasm.bindings.VideoPlaybackQuality;
8 
9 @safe:
10 nothrow:
11 
12 struct HTMLVideoElement {
13   nothrow:
14   libwasm.bindings.HTMLMediaElement.HTMLMediaElement _parent;
15   alias _parent this;
16   this(Handle h) {
17     _parent = .HTMLMediaElement(h);
18   }
19   void width()(uint width) {
20     Object_Call_uint__void(this._parent, "width", width);
21   }
22   uint width()() {
23     return Object_Getter__uint(this._parent, "width");
24   }
25   void height()(uint height) {
26     Object_Call_uint__void(this._parent, "height", height);
27   }
28   uint height()() {
29     return Object_Getter__uint(this._parent, "height");
30   }
31   uint videoWidth()() {
32     return Object_Getter__uint(this._parent, "videoWidth");
33   }
34   uint videoHeight()() {
35     return Object_Getter__uint(this._parent, "videoHeight");
36   }
37   void poster()(string poster) {
38     Object_Call_string__void(this._parent, "poster", poster);
39   }
40   string poster()() {
41     return Object_Getter__string(this._parent, "poster");
42   }
43   uint mozParsedFrames()() {
44     return Object_Getter__uint(this._parent, "mozParsedFrames");
45   }
46   uint mozDecodedFrames()() {
47     return Object_Getter__uint(this._parent, "mozDecodedFrames");
48   }
49   uint mozPresentedFrames()() {
50     return Object_Getter__uint(this._parent, "mozPresentedFrames");
51   }
52   uint mozPaintedFrames()() {
53     return Object_Getter__uint(this._parent, "mozPaintedFrames");
54   }
55   double mozFrameDelay()() {
56     return Object_Getter__double(this._parent, "mozFrameDelay");
57   }
58   bool mozHasAudio()() {
59     return Object_Getter__bool(this._parent, "mozHasAudio");
60   }
61   bool mozOrientationLockEnabled()() {
62     return Object_Getter__bool(this._parent, "mozOrientationLockEnabled");
63   }
64   void mozIsOrientationLocked()(bool mozIsOrientationLocked) {
65     Object_Call_bool__void(this._parent, "mozIsOrientationLocked", mozIsOrientationLocked);
66   }
67   bool mozIsOrientationLocked()() {
68     return Object_Getter__bool(this._parent, "mozIsOrientationLocked");
69   }
70   void cloneElementVisually()(scope ref HTMLVideoElement target) {
71     Object_Call_Handle__void(this._parent, "cloneElementVisually", target._parent);
72   }
73   auto getVideoPlaybackQuality()() {
74     return VideoPlaybackQuality(Object_Getter__Handle(this._parent, "getVideoPlaybackQuality"));
75   }
76 }
77 
78