NestedParameter

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class NestedParameter(val name: String, val order: Int = Int.MAX_VALUE)(source)

NestedParameter annotation for a property that holds an object with annotated parameters of its own. The parameters of that object are listed as Parameter.nestedParameters, user interfaces show them as a group. The property does not need to be mutable. When it is, it can be assigned an object of another class with other parameters; listParameters lists the object the property holds when it is called, the GUI of orx-gui follows assignments and replaces the controls of the group.

class Effect {
@NestedParameter("noise")
val noise = NoiseSettings() // a class with annotated parameters
}

Properties

Link copied to clipboard

the name of the group of nested parameters

Link copied to clipboard
val order: Int

hint for where to place the parameter in user interfaces