/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, markType } from "./type";
/**
 * @hidden
 */
export class EventProxy extends Base {
    constructor() {
        super(...arguments);
        this.onMouseWheel = null;
        this.onMouseWheelHorizontal = null;
        this.onPinchStarted = null;
        this.onPinchDelta = null;
        this.onGestureCompleted = null;
        this.onZoomStarted = null;
        this.onZoomDelta = null;
        this.onZoomCompleted = null;
        this.onFlingStarted = null;
        this.onContactStarted = null;
        this.onDragStarted = null;
        this.onContactMoved = null;
        this.onDragDelta = null;
        this.onContactCompleted = null;
        this.onDragCompleted = null;
        this.onMouseLeave = null;
        this.onMouseOver = null;
        this.onMouseEnter = null;
        this.onMouseDown = null;
        this.onMouseUp = null;
        this.onDoubleTap = null;
        this.onHold = null;
        this.onKeyDown = null;
        this.onKeyUp = null;
        this.bf = null;
        this.bc = 0;
        this.ai = false;
        this.ak = null;
        this.am = null;
        this.an = null;
        this.ao = null;
        this.z = false;
        this.aa = false;
        this.al = null;
    }
    ab(a, b, c) {
        if (this.am != null) {
            return this.am(a, b, c);
        }
        return this.ak(a);
    }
    get_aj() {
        return false;
    }
    get aj() {
        return this.get_aj();
    }
    ag(a, b) {
        if (this.onMouseWheel != null && !this.ac) {
            return this.onMouseWheel(a, b);
        }
        return false;
    }
    ah(a, b) {
        if (this.onMouseWheelHorizontal != null && !this.ac) {
            return this.onMouseWheelHorizontal(a, b);
        }
        return false;
    }
    a7(a, b) {
        if (this.onPinchStarted != null && !this.ac) {
            this.onPinchStarted(a, b);
        }
    }
    ba(a, b, c, d) {
        if (this.onZoomStarted != null && !this.ac) {
            this.onZoomStarted(a, b, c, d);
        }
    }
    ad(a, b, c) {
        if (this.onFlingStarted != null && !this.ac) {
            return this.onFlingStarted(a, b, c);
        }
        return true;
    }
    a6(a, b) {
        if (this.onPinchDelta != null && !this.ac) {
            this.onPinchDelta(a, b);
        }
    }
    a9(a, b, c, d) {
        if (this.onZoomDelta != null && !this.ac) {
            this.onZoomDelta(a, b, c, d);
        }
    }
    a8(a, b, c, d) {
        if (this.onZoomCompleted != null && !this.ac) {
            this.onZoomCompleted(a, b, c, d);
        }
    }
    az(a, b) {
        if (this.onGestureCompleted != null && !this.ac) {
            this.onGestureCompleted(a, b);
        }
    }
    au(a, b) {
        if (this.onContactStarted != null && !this.ac) {
            this.onContactStarted(a, b);
        }
    }
    ay(a) {
        if (this.onDragStarted != null && !this.ac) {
            this.onDragStarted(a);
        }
    }
    at(a, b) {
        if (this.onContactMoved != null && !this.ac) {
            this.onContactMoved(a, b);
        }
    }
    ax(a) {
        if (this.onDragDelta != null && !this.ac) {
            this.onDragDelta(a);
        }
    }
    as(a, b) {
        if (this.onContactCompleted != null && !this.ac) {
            this.onContactCompleted(a, b);
        }
    }
    aw(a) {
        if (this.onDragCompleted != null && !this.ac) {
            this.onDragCompleted(a);
        }
    }
    a3(a) {
        if (this.onMouseLeave != null && !this.ac) {
            this.onMouseLeave(a);
        }
    }
    a4(a, b, c) {
        if (this.onMouseOver != null && !this.ac) {
            this.onMouseOver(a, b, c);
        }
    }
    a2(a) {
        if (this.onMouseEnter != null && !this.ac) {
            this.onMouseEnter(a);
        }
    }
    a1(a) {
        if (this.onMouseDown != null && !this.ac) {
            this.onMouseDown(a);
        }
    }
    a5(a) {
        if (this.onMouseUp != null && !this.ac) {
            this.onMouseUp(a);
        }
    }
    ae(a) {
        if (this.onKeyDown != null && !this.ac) {
            return this.onKeyDown(a);
        }
        return false;
    }
    af(a) {
        if (this.onKeyUp != null && !this.ac) {
            return this.onKeyUp(a);
        }
        return false;
    }
    av(a) {
        if (this.onDoubleTap != null && !this.ac) {
            this.onDoubleTap(a);
        }
    }
    a0(a) {
        if (this.onHold != null && !this.ac) {
            this.onHold(a);
        }
    }
    get ac() {
        return this.z;
    }
    set ac(a) {
        this.z = a;
        this.ar();
    }
    ar() {
    }
}
EventProxy.$t = markType(EventProxy, 'EventProxy');
