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

org.gtlp.ui.handlers.IKeyEventHandler.kt Maven / Gradle / Ivy

The newest version!
package org.gtlp.ui.handlers

import org.gtlp.ui.events.KeyEvent
import org.gtlp.ui.views.IView

/**
 * Interface to define an [IView] that handles [KeyEvent]s
 */
interface IKeyEventHandler : IView {

    /**
     * Called when a key has been pressed.
     */
    fun onKeyDown(event: KeyEvent)

    /**
     * Called when a key has been released.
     */
    fun onKeyUp(event: KeyEvent)

    /**
     * Called when a key has been typed.
     */
    fun onKeyTyped(event: KeyEvent)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy