mirror of https://github.com/sojamo/controlp5
Merge 333c0f7f25
into 1f7cb64986
This commit is contained in:
commit
fc4117ebbf
|
@ -1,5 +1,3 @@
|
|||
package controlP5;
|
||||
|
||||
/**
|
||||
* controlP5 is a processing gui library.
|
||||
*
|
||||
|
@ -25,12 +23,14 @@ package controlP5;
|
|||
*
|
||||
*/
|
||||
|
||||
package controlP5;
|
||||
|
||||
import processing.core.PGraphics;
|
||||
|
||||
/**
|
||||
* The CDrawable interface is used to draw controllers, primarily for internal use.
|
||||
*/
|
||||
public interface CDrawable {
|
||||
@FunctionalInterface public interface CDrawable {
|
||||
|
||||
public void draw( PGraphics theGraphics );
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ package controlP5;
|
|||
* @example use/ControlP5callback
|
||||
* @see controlP5.ControlP5#addCallback(CallbackListener)
|
||||
*/
|
||||
public interface CallbackListener {
|
||||
@FunctionalInterface public interface CallbackListener {
|
||||
|
||||
public void controlEvent( CallbackEvent theEvent );
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ package controlP5;
|
|||
*
|
||||
*/
|
||||
|
||||
public interface ControlKey {
|
||||
@FunctionalInterface public interface ControlKey {
|
||||
|
||||
public void keyEvent();
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ package controlP5;
|
|||
*
|
||||
* @example use/ControlP5listenerForSingleController
|
||||
*/
|
||||
public interface ControlListener {
|
||||
@FunctionalInterface public interface ControlListener {
|
||||
|
||||
/**
|
||||
* controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
package controlP5;
|
||||
|
||||
/**
|
||||
* controlP5 is a processing gui library.
|
||||
*
|
||||
|
@ -25,6 +23,8 @@ package controlP5;
|
|||
*
|
||||
*/
|
||||
|
||||
package controlP5;
|
||||
|
||||
import processing.core.PApplet;
|
||||
import processing.core.PFont;
|
||||
import processing.core.PGraphics;
|
||||
|
@ -35,7 +35,7 @@ import processing.event.KeyEvent;
|
|||
* The ControllerInterface is inherited by all ControllerGroup and Controller classes.
|
||||
*
|
||||
*/
|
||||
public interface ControllerInterface< T > {
|
||||
public interface ControllerInterface< T extends ControllerInterface< T > > {
|
||||
|
||||
@ControlP5.Invisible public void init( );
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
package controlP5;
|
||||
|
||||
/**
|
||||
* controlP5 is a processing gui library.
|
||||
*
|
||||
|
@ -25,6 +23,8 @@ package controlP5;
|
|||
*
|
||||
*/
|
||||
|
||||
package controlP5;
|
||||
|
||||
import processing.core.PGraphics;
|
||||
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ import processing.core.PGraphics;
|
|||
*
|
||||
* @example use/ControlP5customDisplay
|
||||
*/
|
||||
public interface ControllerView< T > {
|
||||
@FunctionalInterface public interface ControllerView< T extends ControllerView< T > > {
|
||||
|
||||
/**
|
||||
* draws your custom controllers. display() will be called by a controller's draw() function and
|
||||
|
|
Loading…
Reference in New Issue