Upgrade to JDK 17. Add @JvmRecord annotations

This commit is contained in:
Edwin Jakobs
2024-06-01 07:31:44 +02:00
parent 06f593053b
commit 78fbff54c5
38 changed files with 94 additions and 33 deletions

View File

@@ -15,6 +15,7 @@ tasks.test {
dependencies {
implementation(project(":orx-expression-evaluator"))
implementation(project(":orx-color"))
implementation(project(":orx-text-writer"))
implementation(libs.openrndr.application)
implementation(libs.openrndr.math)

View File

@@ -14,8 +14,11 @@ import org.openrndr.shape.Rectangle
import java.util.*
@JvmRecord
data class ElementClass(val name: String)
@JvmRecord
data class ElementPseudoClass(val name: String)
@JvmRecord
data class ElementType(val name: String)
val disabled = ElementPseudoClass("disabled")

View File

@@ -21,6 +21,7 @@ import kotlin.reflect.KMutableProperty0
private val logger = KotlinLogging.logger {}
@JvmRecord
data class Range(val min: Double, val max: Double) {
val span: Double get() = max - min
}

View File

@@ -11,6 +11,7 @@ enum class PropertyInheritance {
RESET
}
@JvmRecord
data class Property(val name: String,
val value: Any?)
@@ -41,7 +42,7 @@ sealed class LinearDimension(inherit: Boolean = false) : PropertyValue(inherit)
object Inherit : LinearDimension(inherit = true)
}
@JvmRecord
data class PropertyBehaviour(val inheritance: PropertyInheritance, val intitial: Any)
object PropertyBehaviours {