All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.TouchEventInit Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import jsinterop.annotations.JsProperty;
import jsinterop.base.Js;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.UIEventInit;
import elemental2.dom.Touch;
import jsinterop.base.JsPropertyMap;
import elemental2.core.JsArray;
import elemental2.dom.EventTarget;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public interface TouchEventInit extends UIEventInit{
@JsOverlay
static TouchEventInit create(){
return Js.uncheckedCast(JsPropertyMap.of());
}
@JsProperty
JsArray getChangedTouches();
@JsProperty
EventTarget getRelatedTarget();
@JsProperty
JsArray getTargetTouches();
@JsProperty
JsArray getTouches();
@JsProperty
void setChangedTouches(JsArray changedTouches);
@JsOverlay
default void setChangedTouches(Touch[] changedTouches){
setChangedTouches(Js.>uncheckedCast(changedTouches));
}
@JsProperty
void setRelatedTarget(EventTarget relatedTarget);
@JsProperty
void setTargetTouches(JsArray targetTouches);
@JsOverlay
default void setTargetTouches(Touch[] targetTouches){
setTargetTouches(Js.>uncheckedCast(targetTouches));
}
@JsProperty
void setTouches(JsArray touches);
@JsOverlay
default void setTouches(Touch[] touches){
setTouches(Js.>uncheckedCast(touches));
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy