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

ch.viseon.threejs.declarations.core.EventDispatcher.kt Maven / Gradle / Ivy

Go to download

Kotlin wrapper for ThreeJs, javascript library for 3d rendering

There is a newer version: 126.0.0
Show newest version
@file:JsModule("three")
package ch.viseon.threejs.declarations.core

	/**
	* JavaScript events for custom objects. [link:https://github.com/mrdoob/eventdispatcher.js Eventdispatcher on GitHub]
	*/
open external class EventDispatcher{

	/**
	* type - The type of event to listen to. listener - The function that gets called when the event is fired.
Adds a listener to an event type.
	*/
	open fun addEventListener(type: String = definedExternally, listener: dynamic = definedExternally) : dynamic


	/**
	* type - The type of event to listen to. listener - The function that gets called when the event is fired.
Checks if listener is added to an event type.
	*/
	open fun hasEventListener(type: String = definedExternally, listener: dynamic = definedExternally) : Boolean


	/**
	* type - The type of the listener that gets removed. listener - The listener function that gets removed.
Removes a listener from an event type.
	*/
	open fun removeEventListener(type: String = definedExternally, listener: dynamic = definedExternally) : dynamic


	/**
	* event - The event that gets fired.
Fire an event type.
	*/
	open fun dispatchEvent(event: dynamic = definedExternally) : dynamic
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy