1 module libwasm.bindings.SimpleGestureEvent;
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 SimpleGestureEvent {
14   nothrow:
15   libwasm.bindings.MouseEvent.MouseEvent _parent;
16   alias _parent this;
17   this(Handle h) {
18     _parent = .MouseEvent(h);
19   }
20   enum uint DIRECTION_UP = 1;
21   enum uint DIRECTION_DOWN = 2;
22   enum uint DIRECTION_LEFT = 4;
23   enum uint DIRECTION_RIGHT = 8;
24   enum uint ROTATION_COUNTERCLOCKWISE = 1;
25   enum uint ROTATION_CLOCKWISE = 2;
26   void allowedDirections()(uint allowedDirections) {
27     Object_Call_uint__void(this._parent, "allowedDirections", allowedDirections);
28   }
29   uint allowedDirections()() {
30     return Object_Getter__uint(this._parent, "allowedDirections");
31   }
32   uint direction()() {
33     return Object_Getter__uint(this._parent, "direction");
34   }
35   double delta()() {
36     return Object_Getter__double(this._parent, "delta");
37   }
38   uint clickCount()() {
39     return Object_Getter__uint(this._parent, "clickCount");
40   }
41   void initSimpleGestureEvent(T3, T14)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */, scope auto ref Optional!(T14) relatedTargetArg /* = no!(EventTarget) */, uint allowedDirectionsArg /* = 0 */, uint directionArg /* = 0 */, double deltaArg /* = 0 */, uint clickCount /* = 0 */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
42     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle;uint;uint;double;uint", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, !relatedTargetArg.empty, cast(Handle)relatedTargetArg.front.handle, allowedDirectionsArg, directionArg, deltaArg, clickCount));
43   }
44   void initSimpleGestureEvent(T3, T14)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */, scope auto ref Optional!(T14) relatedTargetArg /* = no!(EventTarget) */, uint allowedDirectionsArg /* = 0 */, uint directionArg /* = 0 */, double deltaArg /* = 0 */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
45     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle;uint;uint;double", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, !relatedTargetArg.empty, cast(Handle)relatedTargetArg.front.handle, allowedDirectionsArg, directionArg, deltaArg));
46   }
47   void initSimpleGestureEvent(T3, T14)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */, scope auto ref Optional!(T14) relatedTargetArg /* = no!(EventTarget) */, uint allowedDirectionsArg /* = 0 */, uint directionArg /* = 0 */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
48     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle;uint;uint", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, !relatedTargetArg.empty, cast(Handle)relatedTargetArg.front.handle, allowedDirectionsArg, directionArg));
49   }
50   void initSimpleGestureEvent(T3, T14)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */, scope auto ref Optional!(T14) relatedTargetArg /* = no!(EventTarget) */, uint allowedDirectionsArg /* = 0 */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
51     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle;uint", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, !relatedTargetArg.empty, cast(Handle)relatedTargetArg.front.handle, allowedDirectionsArg));
52   }
53   void initSimpleGestureEvent(T3, T14)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */, scope auto ref Optional!(T14) relatedTargetArg /* = no!(EventTarget) */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) {
54     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short;Optional!Handle", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, !relatedTargetArg.empty, cast(Handle)relatedTargetArg.front.handle));
55   }
56   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */, short buttonArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
57     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;short", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg));
58   }
59   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */, bool metaKeyArg /* = false */) if (isTOrPointer!(T3, Window)) {
60     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg));
61   }
62   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */, bool shiftKeyArg /* = false */) if (isTOrPointer!(T3, Window)) {
63     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg));
64   }
65   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */, bool altKeyArg /* = false */) if (isTOrPointer!(T3, Window)) {
66     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg));
67   }
68   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */, bool ctrlKeyArg /* = false */) if (isTOrPointer!(T3, Window)) {
69     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg));
70   }
71   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */, int clientYArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
72     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg, clientYArg));
73   }
74   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */, int clientXArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
75     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int;int", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg, clientXArg));
76   }
77   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */, int screenYArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
78     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int;int", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg, screenYArg));
79   }
80   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */, int screenXArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
81     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int;int", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg, screenXArg));
82   }
83   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */, int detailArg /* = 0 */) if (isTOrPointer!(T3, Window)) {
84     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle;int", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent, detailArg));
85   }
86   void initSimpleGestureEvent(T3)(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */, scope auto ref Optional!(T3) viewArg /* = no!(Window) */) if (isTOrPointer!(T3, Window)) {
87     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool;Optional!Handle", tuple(typeArg, canBubbleArg, cancelableArg, !viewArg.empty, cast(Handle)viewArg.front._parent));
88   }
89   void initSimpleGestureEvent()(string typeArg, bool canBubbleArg /* = false */, bool cancelableArg /* = false */) {
90     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool;bool", tuple(typeArg, canBubbleArg, cancelableArg));
91   }
92   void initSimpleGestureEvent()(string typeArg, bool canBubbleArg /* = false */) {
93     Serialize_Object_VarArgCall!void(this._parent, "initSimpleGestureEvent", "string;bool", tuple(typeArg, canBubbleArg));
94   }
95   void initSimpleGestureEvent()(string typeArg) {
96     Object_Call_string__void(this._parent, "initSimpleGestureEvent", typeArg);
97   }
98 }
99 
100