1 module libwasm.bindings.DragEvent; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 import libwasm.bindings.DataTransfer; 7 import libwasm.bindings.EventTarget; 8 import libwasm.bindings.MouseEvent; 9 import libwasm.bindings.Window; 10 11 @safe: 12 nothrow: 13 14 struct DragEvent { 15 nothrow: 16 libwasm.bindings.MouseEvent.MouseEvent _parent; 17 alias _parent this; 18 this(Handle h) { 19 _parent = .MouseEvent(h); 20 } 21 auto dataTransfer()() { 22 return recastOpt!(DataTransfer)(Object_Getter__OptionalHandle(this._parent, "dataTransfer")); 23 } 24 void initDragEvent(T3, T14, T15)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */, bool aShiftKey /* = false */, bool aMetaKey /* = false */, ushort aButton /* = 0 */, scope auto ref Optional!(T14) aRelatedTarget /* = no!(EventTarget) */, scope auto ref Optional!(T15) aDataTransfer /* = no!(DataTransfer) */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget) && isTOrPointer!(T15, DataTransfer)) { 25 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;ushort;Optional!Handle;Optional!Handle", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey, aShiftKey, aMetaKey, aButton, !aRelatedTarget.empty, cast(Handle)aRelatedTarget.front.handle, !aDataTransfer.empty, cast(Handle)aDataTransfer.front.handle)); 26 } 27 void initDragEvent(T3, T14)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */, bool aShiftKey /* = false */, bool aMetaKey /* = false */, ushort aButton /* = 0 */, scope auto ref Optional!(T14) aRelatedTarget /* = no!(EventTarget) */) if (isTOrPointer!(T3, Window) && isTOrPointer!(T14, EventTarget)) { 28 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;ushort;Optional!Handle", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey, aShiftKey, aMetaKey, aButton, !aRelatedTarget.empty, cast(Handle)aRelatedTarget.front.handle)); 29 } 30 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */, bool aShiftKey /* = false */, bool aMetaKey /* = false */, ushort aButton /* = 0 */) if (isTOrPointer!(T3, Window)) { 31 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool;ushort", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey, aShiftKey, aMetaKey, aButton)); 32 } 33 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */, bool aShiftKey /* = false */, bool aMetaKey /* = false */) if (isTOrPointer!(T3, Window)) { 34 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool;bool", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey, aShiftKey, aMetaKey)); 35 } 36 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */, bool aShiftKey /* = false */) if (isTOrPointer!(T3, Window)) { 37 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool;bool", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey, aShiftKey)); 38 } 39 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */, bool aAltKey /* = false */) if (isTOrPointer!(T3, Window)) { 40 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool;bool", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey, aAltKey)); 41 } 42 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */, bool aCtrlKey /* = false */) if (isTOrPointer!(T3, Window)) { 43 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int;bool", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY, aCtrlKey)); 44 } 45 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */, int aClientY /* = 0 */) if (isTOrPointer!(T3, Window)) { 46 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int;int", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX, aClientY)); 47 } 48 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */, int aClientX /* = 0 */) if (isTOrPointer!(T3, Window)) { 49 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int;int", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY, aClientX)); 50 } 51 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */, int aScreenY /* = 0 */) if (isTOrPointer!(T3, Window)) { 52 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int;int", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX, aScreenY)); 53 } 54 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */, int aScreenX /* = 0 */) if (isTOrPointer!(T3, Window)) { 55 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int;int", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail, aScreenX)); 56 } 57 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */, int aDetail /* = 0 */) if (isTOrPointer!(T3, Window)) { 58 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle;int", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent, aDetail)); 59 } 60 void initDragEvent(T3)(string type, bool canBubble /* = false */, bool cancelable /* = false */, scope auto ref Optional!(T3) aView /* = no!(Window) */) if (isTOrPointer!(T3, Window)) { 61 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool;Optional!Handle", tuple(type, canBubble, cancelable, !aView.empty, cast(Handle)aView.front._parent)); 62 } 63 void initDragEvent()(string type, bool canBubble /* = false */, bool cancelable /* = false */) { 64 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool;bool", tuple(type, canBubble, cancelable)); 65 } 66 void initDragEvent()(string type, bool canBubble /* = false */) { 67 Serialize_Object_VarArgCall!void(this._parent, "initDragEvent", "string;bool", tuple(type, canBubble)); 68 } 69 void initDragEvent()(string type) { 70 Object_Call_string__void(this._parent, "initDragEvent", type); 71 } 72 } 73 struct DragEventInit { 74 nothrow: 75 libwasm.bindings.MouseEvent.MouseEventInit _parent; 76 alias _parent this; 77 this(Handle h) { 78 _parent = .MouseEventInit(h); 79 } 80 static auto create() { 81 return DragEventInit(libwasm_add__object()); 82 } 83 void dataTransfer(T0)(scope auto ref Optional!(T0) dataTransfer) if (isTOrPointer!(T0, DataTransfer)) { 84 Serialize_Object_VarArgCall!void(this._parent, "dataTransfer", "Optional!Handle", tuple(!dataTransfer.empty, cast(Handle)dataTransfer.front.handle)); 85 } 86 auto dataTransfer()() { 87 return recastOpt!(DataTransfer)(Object_Getter__OptionalHandle(this._parent, "dataTransfer")); 88 } 89 } 90 91