public static Ty create_event <Ty>(EventName eventName, EventInit eventInit) where Ty : Event {/* Docs: https://dom.spec.whatwg.org/#concept-event-create */ Ty @event = inner_create_event <Ty>(eventName, Window.getTimestamp(), eventInit); @event.isTrusted = true; return(@event); }
public Event(string type = "", EventInit init = null) { this.type = type; if (init == null) init = new EventInit(); bubbles = init.bubbles; cancelable = init.cancelable; this.isTrusted = false; this.eventPhase = EventPhase.NONE; this.target = null; this.timeStamp = (long)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMilliseconds; }
public Event(string type = "", EventInit init = null) { this.type = type; if (init == null) { init = new EventInit(); } bubbles = init.bubbles; cancelable = init.cancelable; this.isTrusted = false; this.eventPhase = EventPhase.NONE; this.target = null; this.timeStamp = (long)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMilliseconds; }
public Event(string type, EventInit eventInit) { }
public Event(string typeArg, EventInit eventInitDict) { }