Open Lighting Architecture
0.9.6
|
Creates Fadecandy widgets.
Public Member Functions | |
ScanlimeFadecandyFactory (class LibUsbAdaptor *adaptor) | |
bool | DeviceAdded (WidgetObserver *observer, libusb_device *usb_device, const struct libusb_device_descriptor &descriptor) |
Called when a new USB device is added. | |
Public Member Functions inherited from ola::plugin::usbdmx::BaseWidgetFactory< class ScanlimeFadecandy > | |
void | DeviceRemoved (WidgetObserver *observer, libusb_device *device) |
Called when a USB device is removed. |
Additional Inherited Members | |
Protected Member Functions inherited from ola::plugin::usbdmx::BaseWidgetFactory< class ScanlimeFadecandy > | |
bool | HasDevice (libusb_device *usb_device) |
Check if this factory is already using this device. | |
unsigned int | DeviceCount () const |
Return the number of active widgets. | |
bool | AddWidget (WidgetObserver *observer, libusb_device *usb_device, class ScanlimeFadecandy *widget) |
Initialize a widget and notify the observer. |
|
virtual |
Called when a new USB device is added.
observer | The WidgetObserver to notify if this results in a new widget. |
usb_device | the libusb_device that was added. |
descriptor | the libusb_device_descriptor that corresponds to the usb_device. |
Implements ola::plugin::usbdmx::WidgetFactory.