|
BuGUI
BUtton Grid User Interface
|
Handles presses and enables painting on the device's labelled buttons. More...
#include <buttons.hpp>
Protected Member Functions | |
| bool | on_button_received (Controller *ctrlr, id_type id) |
| void | paint (const button_painter &p, std::function< void(id_type, const color_cnvtr &) > &&func) |
Protected Attributes | |
| button_presser | btn_prsr |
Additional Inherited Members | |
| Public Member Functions inherited from bugui::base_hardware | |
| virtual void | setup ()=0 |
| Sends any preliminary commands needed by the device ie. initialising to a particular mode like XY (Launchpad mini/S) programmer (Launchpad Pro), notes, drum pads, sliders... | |
| virtual void | clear ()=0 |
| Turns off all LEDs. | |
| virtual int | width () const =0 |
| Retrieves the with of the device's grid. | |
| virtual int | height () const =0 |
| Retrieves the height of the device's grid. | |
| virtual void | set_grid (painter &)=0 |
| Pass a reference to the painter object and display it's content to the grid. | |
| virtual void | set_button (const button_painter &)=0 |
| Pass a reference to the button_painter object and display it's content to the device's buttons. | |
Handles presses and enables painting on the device's labelled buttons.