|
BuGUI
BUtton Grid User Interface
|
Handle presses and enables painting on the device's button grid. More...
#include <grid.hpp>
Public Member Functions | |
| presser & | get_presser () |
| reties the presser object | |
| 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 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. | |
Protected Member Functions | |
| void | paint (painter &paint, std::function< void(id_t, const color_cnvtr &)> &&func) |
| void | clear (std::function< void(id_t id)> &&func) |
| bool | on_grid_received (Controller *ctrlr, id_t id) |
Protected Attributes | |
| presser | prsr |
Handle presses and enables painting on the device's button grid.