Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
        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;
        }
Example #4
0
 public Event(string type, EventInit eventInit)
 {
 }
Example #5
0
 public Event(string type, EventInit eventInit)
 {
 }
 public Event(string typeArg, EventInit eventInitDict)
 {
 }