Upgrade to JDK 17. Add @JvmRecord annotations
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user