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