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

commonMain.io.nacular.doodle.system.SystemInputEvent.kt Maven / Gradle / Ivy

package io.nacular.doodle.system

import io.nacular.doodle.event.Event

public abstract class SystemInputEvent internal constructor(public val modifiers: Set): Event(null) {

    public operator fun contains(modifiers: Set): Boolean = this.modifiers.containsAll(modifiers)
    public operator fun contains(modifier : Modifier     ): Boolean = modifier in modifiers

    public enum class Modifier {
        Alt, Ctrl, Shift, Meta
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy