Esempio n. 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);
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 4
0
 public Event(string type, EventInit eventInit)
 {
 }
Esempio n. 5
0
 public Event(string type, EventInit eventInit)
 {
 }
 public Event(string typeArg, EventInit eventInitDict)
 {
 }