Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
generated.org.w3c.dom.events.kt Maven / Gradle / Ivy
/*
* Generated file
* DO NOT EDIT
*
* See libraries/tools/idl2k for details
*/
package org.w3c.dom.events
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*
@native public open class UIEvent(type: String, eventInitDict: UIEventInit = noImpl) : Event(type, eventInitDict) {
open val view: Window?
get() = noImpl
open val detail: Int
get() = noImpl
fun initUIEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int): Unit = noImpl
}
@native public interface UIEventInit : EventInit {
var view: Window?
var detail: Int
}
@Suppress("NOTHING_TO_INLINE")
public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit {
val o = js("({})")
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) {
open val relatedTarget: EventTarget?
get() = noImpl
fun initFocusEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, relatedTargetArg: EventTarget?): Unit = noImpl
}
@native public interface FocusEventInit : UIEventInit {
var relatedTarget: EventTarget?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit {
val o = js("({})")
o["relatedTarget"] = relatedTarget
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent {
open val region: String?
get() = noImpl
// open val screenX: Double
// get() = noImpl
// open val screenY: Double
// get() = noImpl
open val pageX: Double
get() = noImpl
open val pageY: Double
get() = noImpl
// open val clientX: Double
// get() = noImpl
// open val clientY: Double
// get() = noImpl
// open val x: Double
// get() = noImpl
// open val y: Double
// get() = noImpl
open val offsetX: Double
get() = noImpl
open val offsetY: Double
get() = noImpl
open val screenX: Int
get() = noImpl
open val screenY: Int
get() = noImpl
open val clientX: Int
get() = noImpl
open val clientY: Int
get() = noImpl
open val ctrlKey: Boolean
get() = noImpl
open val shiftKey: Boolean
get() = noImpl
open val altKey: Boolean
get() = noImpl
open val metaKey: Boolean
get() = noImpl
open val button: Short
get() = noImpl
open val relatedTarget: EventTarget?
get() = noImpl
open val buttons: Short
get() = noImpl
fun getModifierState(keyArg: String): Boolean = noImpl
fun initMouseEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, ctrlKeyArg: Boolean, altKeyArg: Boolean, shiftKeyArg: Boolean, metaKeyArg: Boolean, buttonArg: Short, relatedTargetArg: EventTarget?): Unit = noImpl
}
@native public interface MouseEventInit : EventModifierInit {
var screenX: Int
var screenY: Int
var clientX: Int
var clientY: Int
var button: Short
var buttons: Short
var relatedTarget: EventTarget?
}
@Suppress("NOTHING_TO_INLINE")
public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): MouseEventInit {
val o = js("({})")
o["screenX"] = screenX
o["screenY"] = screenY
o["clientX"] = clientX
o["clientY"] = clientY
o["button"] = button
o["buttons"] = buttons
o["relatedTarget"] = relatedTarget
o["ctrlKey"] = ctrlKey
o["shiftKey"] = shiftKey
o["altKey"] = altKey
o["metaKey"] = metaKey
o["modifierAltGraph"] = modifierAltGraph
o["modifierCapsLock"] = modifierCapsLock
o["modifierFn"] = modifierFn
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
o["modifierSymbolLock"] = modifierSymbolLock
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public interface EventModifierInit : UIEventInit {
var ctrlKey: Boolean
var shiftKey: Boolean
var altKey: Boolean
var metaKey: Boolean
var modifierAltGraph: Boolean
var modifierCapsLock: Boolean
var modifierFn: Boolean
var modifierFnLock: Boolean
var modifierHyper: Boolean
var modifierNumLock: Boolean
var modifierOS: Boolean
var modifierScrollLock: Boolean
var modifierSuper: Boolean
var modifierSymbol: Boolean
var modifierSymbolLock: Boolean
}
@Suppress("NOTHING_TO_INLINE")
public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): EventModifierInit {
val o = js("({})")
o["ctrlKey"] = ctrlKey
o["shiftKey"] = shiftKey
o["altKey"] = altKey
o["metaKey"] = metaKey
o["modifierAltGraph"] = modifierAltGraph
o["modifierCapsLock"] = modifierCapsLock
o["modifierFn"] = modifierFn
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
o["modifierSymbolLock"] = modifierSymbolLock
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) {
open val deltaX: Double
get() = noImpl
open val deltaY: Double
get() = noImpl
open val deltaZ: Double
get() = noImpl
open val deltaMode: Int
get() = noImpl
fun initWheelEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, buttonArg: Short, relatedTargetArg: EventTarget?, modifiersListArg: String, deltaXArg: Double, deltaYArg: Double, deltaZArg: Double, deltaMode: Int): Unit = noImpl
companion object {
val DOM_DELTA_PIXEL: Int = 0x00
val DOM_DELTA_LINE: Int = 0x01
val DOM_DELTA_PAGE: Int = 0x02
}
}
@native public interface WheelEventInit : MouseEventInit {
var deltaX: Double
var deltaY: Double
var deltaZ: Double
var deltaMode: Int
}
@Suppress("NOTHING_TO_INLINE")
public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, deltaZ: Double = 0.0, deltaMode: Int = 0, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): WheelEventInit {
val o = js("({})")
o["deltaX"] = deltaX
o["deltaY"] = deltaY
o["deltaZ"] = deltaZ
o["deltaMode"] = deltaMode
o["screenX"] = screenX
o["screenY"] = screenY
o["clientX"] = clientX
o["clientY"] = clientY
o["button"] = button
o["buttons"] = buttons
o["relatedTarget"] = relatedTarget
o["ctrlKey"] = ctrlKey
o["shiftKey"] = shiftKey
o["altKey"] = altKey
o["metaKey"] = metaKey
o["modifierAltGraph"] = modifierAltGraph
o["modifierCapsLock"] = modifierCapsLock
o["modifierFn"] = modifierFn
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
o["modifierSymbolLock"] = modifierSymbolLock
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) {
open val key: String
get() = noImpl
open val code: String
get() = noImpl
open val location: Int
get() = noImpl
open val ctrlKey: Boolean
get() = noImpl
open val shiftKey: Boolean
get() = noImpl
open val altKey: Boolean
get() = noImpl
open val metaKey: Boolean
get() = noImpl
open val repeat: Boolean
get() = noImpl
open val isComposing: Boolean
get() = noImpl
open val charCode: Int
get() = noImpl
open val keyCode: Int
get() = noImpl
open val which: Int
get() = noImpl
fun getModifierState(keyArg: String): Boolean = noImpl
fun initKeyboardEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, keyArg: String, locationArg: Int, modifiersListArg: String, repeat: Boolean, locale: String): Unit = noImpl
companion object {
val DOM_KEY_LOCATION_STANDARD: Int = 0x00
val DOM_KEY_LOCATION_LEFT: Int = 0x01
val DOM_KEY_LOCATION_RIGHT: Int = 0x02
val DOM_KEY_LOCATION_NUMPAD: Int = 0x03
}
}
@native public interface KeyboardEventInit : EventModifierInit {
var key: String
var code: String
var location: Int
var repeat: Boolean
var isComposing: Boolean
}
@Suppress("NOTHING_TO_INLINE")
public inline fun KeyboardEventInit(key: String = "", code: String = "", location: Int = 0, repeat: Boolean = false, isComposing: Boolean = false, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): KeyboardEventInit {
val o = js("({})")
o["key"] = key
o["code"] = code
o["location"] = location
o["repeat"] = repeat
o["isComposing"] = isComposing
o["ctrlKey"] = ctrlKey
o["shiftKey"] = shiftKey
o["altKey"] = altKey
o["metaKey"] = metaKey
o["modifierAltGraph"] = modifierAltGraph
o["modifierCapsLock"] = modifierCapsLock
o["modifierFn"] = modifierFn
o["modifierFnLock"] = modifierFnLock
o["modifierHyper"] = modifierHyper
o["modifierNumLock"] = modifierNumLock
o["modifierOS"] = modifierOS
o["modifierScrollLock"] = modifierScrollLock
o["modifierSuper"] = modifierSuper
o["modifierSymbol"] = modifierSymbol
o["modifierSymbolLock"] = modifierSymbolLock
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) {
open val data: String
get() = noImpl
fun initCompositionEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, dataArg: String, locale: String): Unit = noImpl
}
@native public interface CompositionEventInit : UIEventInit {
var data: String
}
@Suppress("NOTHING_TO_INLINE")
public inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit {
val o = js("({})")
o["data"] = data
o["view"] = view
o["detail"] = detail
o["bubbles"] = bubbles
o["cancelable"] = cancelable
return o
}
@native public open class MutationEvent : Event(noImpl, noImpl) {
open val relatedNode: Node?
get() = noImpl
open val prevValue: String
get() = noImpl
open val newValue: String
get() = noImpl
open val attrName: String
get() = noImpl
open val attrChange: Short
get() = noImpl
fun initMutationEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, relatedNodeArg: Node?, prevValueArg: String, newValueArg: String, attrNameArg: String, attrChangeArg: Short): Unit = noImpl
companion object {
val MODIFICATION: Short = 1
val ADDITION: Short = 2
val REMOVAL: Short = 3
}
}
@native public open class Event(type: String, eventInitDict: EventInit = noImpl) {
open val type: String
get() = noImpl
open val target: EventTarget?
get() = noImpl
open val currentTarget: EventTarget?
get() = noImpl
open val eventPhase: Short
get() = noImpl
open val bubbles: Boolean
get() = noImpl
open val cancelable: Boolean
get() = noImpl
open val defaultPrevented: Boolean
get() = noImpl
open val isTrusted: Boolean
get() = noImpl
open val timeStamp: Number
get() = noImpl
fun stopPropagation(): Unit = noImpl
fun stopImmediatePropagation(): Unit = noImpl
fun preventDefault(): Unit = noImpl
fun initEvent(type: String, bubbles: Boolean, cancelable: Boolean): Unit = noImpl
companion object {
val NONE: Short = 0
val CAPTURING_PHASE: Short = 1
val AT_TARGET: Short = 2
val BUBBLING_PHASE: Short = 3
}
}
@native public interface EventTarget {
fun addEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl
fun addEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl
fun removeEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl
fun removeEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl
fun dispatchEvent(event: Event): Boolean = noImpl
}
@native public interface EventListener {
fun handleEvent(event: Event): Unit = noImpl
}