1 module libwasm.bindings.MouseScrollEvent;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.EventTarget;
7 import libwasm.bindings.MouseEvent;
8 import libwasm.bindings.Window;
9 
10 @safe:
11 nothrow:
12 
13 struct MouseScrollEvent {
14   nothrow:
15   libwasm.bindings.MouseEvent.MouseEvent _parent;
16   alias _parent this;
17   this(Handle h) {
18     _parent = .MouseEvent(h);
19   }
20   enum int HORIZONTAL_AXIS = 1;
21   enum int VERTICAL_AXIS = 2;
22   int axis()() {
23     return Object_Getter__int(this._parent, "axis");
24   }
25   void initMouseScrollEvent(T3, T14)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */, bool shiftKey /* = false */, bool metaKey /* = false */, short button /* = 0 */, scope auto ref Optional!(T14) relatedTarget /* = no!(EventTarget) */, int axis /* = 0 */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
26     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, !relatedTarget.empty, cast(Handle)relatedTarget.front.handle, axis));
27   }
28   void initMouseScrollEvent(T3, T14)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */, bool shiftKey /* = false */, bool metaKey /* = false */, short button /* = 0 */, scope auto ref Optional!(T14) relatedTarget /* = no!(EventTarget) */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
29     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, !relatedTarget.empty, cast(Handle)relatedTarget.front.handle));
30   }
31   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */, bool shiftKey /* = false */, bool metaKey /* = false */, short button /* = 0 */) if (isTOrPointer!(T3, Window)) {
32     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button));
33   }
34   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */, bool shiftKey /* = false */, bool metaKey /* = false */) if (isTOrPointer!(T3, Window)) {
35     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey));
36   }
37   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */, bool shiftKey /* = false */) if (isTOrPointer!(T3, Window)) {
38     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey));
39   }
40   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */, bool altKey /* = false */) if (isTOrPointer!(T3, Window)) {
41     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey));
42   }
43   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */, bool ctrlKey /* = false */) if (isTOrPointer!(T3, Window)) {
44     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY, ctrlKey));
45   }
46   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */, int clientY /* = 0 */) if (isTOrPointer!(T3, Window)) {
47     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX, clientY));
48   }
49   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */, int clientX /* = 0 */) if (isTOrPointer!(T3, Window)) {
50     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY, clientX));
51   }
52   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */, int screenY /* = 0 */) if (isTOrPointer!(T3, Window)) {
53     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX, screenY));
54   }
55   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */, int screenX /* = 0 */) if (isTOrPointer!(T3, Window)) {
56     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail, screenX));
57   }
58   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */, int detail /* = 0 */) if (isTOrPointer!(T3, Window)) {
59     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle;int", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent, detail));
60   }
61   void initMouseScrollEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) view /* = no!(Window) */) if (isTOrPointer!(T3, Window)) {
62     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool;Optional!Handle", tuple(type, canBubble, cancelable, !view.empty, cast(Handle)view.front._parent));
63   }
64   void initMouseScrollEvent()(string type, bool canBubble /* = false */, bool cancelable /* = false */) {
65     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool;bool", tuple(type, canBubble, cancelable));
66   }
67   void initMouseScrollEvent()(string type, bool canBubble /* = false */) {
68     Serialize_Object_VarArgCall!void(this._parent, "initMouseScrollEvent", "string;bool", tuple(type, canBubble));
69   }
70   void initMouseScrollEvent()(string type) {
71     Object_Call_string__void(this._parent, "initMouseScrollEvent", type);
72   }
73 }
74 
75