Bitwig Studio Control Surface API  4.0.1
MultiStateHardwareLight.java
1 package com.bitwig.extension.controller.api;
2 
3 import java.util.function.Function;
4 import java.util.function.IntFunction;
5 import java.util.function.Supplier;
6 
8 
15 public interface MultiStateHardwareLight extends HardwareLight
16 {
22 
28  void setColorToStateFunction(Function<Color, InternalHardwareLightState> function);
29 
34  void setColor(Color color);
35 
40  void setColorSupplier(Supplier<Color> colorSupplier);
41 
42  InternalHardwareLightState getBestLightStateForColor(Color color);
43 }
void setColorSupplier(Supplier< Color > colorSupplier)
void setColorToStateFunction(Function< Color, InternalHardwareLightState > function)
ObjectHardwareProperty< InternalHardwareLightState > state()