elemental2.dom.TouchEventInit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
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));
}
}