mirror of
https://github.com/sojamo/controlp5
synced 2024-06-16 15:01:22 +02:00
24 lines
459 B
Java
Executable File
24 lines
459 B
Java
Executable File
package controlP5;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/**
|
|
* Used for automated controller creation using annotations. Very much inspired by Karsten Schmidt's
|
|
* (toxi) cp5magic
|
|
*
|
|
* @example use/ControlP5annotation
|
|
*/
|
|
@Retention( RetentionPolicy.RUNTIME )
|
|
public @interface ControlElement {
|
|
|
|
String[] properties() default { };
|
|
|
|
String label() default "";
|
|
|
|
int x() default -1;
|
|
|
|
int y() default -1;
|
|
|
|
}
|