![]() |
Open Lighting Architecture 0.10.9
|
A base simple widget class.
This holds a pointer to a LibUsbAdaptor so we don't have to duplicate that code in all the Widgets.
Public Member Functions | |
SimpleWidget (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device) | |
Create a new SimpleWidget. | |
ola::usb::USBDeviceID | GetDeviceId () const |
The device ID of this widget. | |
![]() | |
virtual bool | Init ()=0 |
Initialize the widget. | |
virtual bool | SendDMX (const DmxBuffer &buffer)=0 |
Send DMX data from this widget. | |
Protected Attributes | |
ola::usb::LibUsbAdaptor *const | m_adaptor |
libusb_device *const | m_usb_device |
|
inlineexplicit |
Create a new SimpleWidget.
adaptor | the LibUsbAdaptor to use. |
usb_device | The libusb_device for this widget. |
|
inlinevirtual |
The device ID of this widget.
Implements ola::plugin::usbdmx::WidgetInterface.