
com.olvind.mui.react.mod.DragEvent.scala Maven / Gradle / Ivy
package com.olvind.mui.react.mod
import org.scalajs.dom.DataTransfer
import org.scalajs.dom.EventTarget
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait DragEvent[T]
extends StObject
with MouseEvent[T, org.scalajs.dom.DragEvent] {
var dataTransfer: DataTransfer
}
object DragEvent {
inline def apply[T](
altKey: Boolean,
bubbles: Boolean,
button: Double,
buttons: Double,
cancelable: Boolean,
clientX: Double,
clientY: Double,
ctrlKey: Boolean,
currentTarget: EventTarget & T,
dataTransfer: DataTransfer,
defaultPrevented: Boolean,
detail: Double,
eventPhase: Double,
getModifierState: ModifierKey => Boolean,
isDefaultPrevented: () => Boolean,
isPropagationStopped: () => Boolean,
isTrusted: Boolean,
metaKey: Boolean,
movementX: Double,
movementY: Double,
nativeEvent: org.scalajs.dom.DragEvent,
pageX: Double,
pageY: Double,
persist: () => Unit,
preventDefault: () => Unit,
screenX: Double,
screenY: Double,
shiftKey: Boolean,
stopPropagation: () => Unit,
target: EventTarget,
timeStamp: Double,
`type`: String,
view: AbstractView
): DragEvent[T] = {
val __obj = js.Dynamic.literal(altKey = altKey.asInstanceOf[js.Any], bubbles = bubbles.asInstanceOf[js.Any], button = button.asInstanceOf[js.Any], buttons = buttons.asInstanceOf[js.Any], cancelable = cancelable.asInstanceOf[js.Any], clientX = clientX.asInstanceOf[js.Any], clientY = clientY.asInstanceOf[js.Any], ctrlKey = ctrlKey.asInstanceOf[js.Any], currentTarget = currentTarget.asInstanceOf[js.Any], dataTransfer = dataTransfer.asInstanceOf[js.Any], defaultPrevented = defaultPrevented.asInstanceOf[js.Any], detail = detail.asInstanceOf[js.Any], eventPhase = eventPhase.asInstanceOf[js.Any], getModifierState = js.Any.fromFunction1(getModifierState), isDefaultPrevented = js.Any.fromFunction0(isDefaultPrevented), isPropagationStopped = js.Any.fromFunction0(isPropagationStopped), isTrusted = isTrusted.asInstanceOf[js.Any], metaKey = metaKey.asInstanceOf[js.Any], movementX = movementX.asInstanceOf[js.Any], movementY = movementY.asInstanceOf[js.Any], nativeEvent = nativeEvent.asInstanceOf[js.Any], pageX = pageX.asInstanceOf[js.Any], pageY = pageY.asInstanceOf[js.Any], persist = js.Any.fromFunction0(persist), preventDefault = js.Any.fromFunction0(preventDefault), screenX = screenX.asInstanceOf[js.Any], screenY = screenY.asInstanceOf[js.Any], shiftKey = shiftKey.asInstanceOf[js.Any], stopPropagation = js.Any.fromFunction0(stopPropagation), target = target.asInstanceOf[js.Any], timeStamp = timeStamp.asInstanceOf[js.Any], view = view.asInstanceOf[js.Any], relatedTarget = null)
__obj.updateDynamic("type")(`type`.asInstanceOf[js.Any])
__obj.asInstanceOf[DragEvent[T]]
}
@scala.inline
implicit open class MutableBuilder[Self <: DragEvent[?], T] (val x: Self & DragEvent[T]) extends AnyVal {
inline def setDataTransfer(value: DataTransfer): Self = StObject.set(x, "dataTransfer", value.asInstanceOf[js.Any])
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy