BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::component< Device, Controller > Struct Template Reference

Inherits from all type of hardware components like grid, buttons... Provides the hardware type with the functionalities to interact with each components. More...

#include <component.hpp>

Inheritance diagram for bugui::component< Device, Controller >:
bugui::grid< Device, Controller > bugui::buttons< Device, Controller > bugui::base_hardware bugui::base_hardware bugui::base_hardware bugui::base_hardware bugui::midi_in< Device, Controller > bugui::midi_out< Device, Controller > bugui::sysex_out< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi_base< Device, Controller > bugui::midi< Device, Controller > bugui::midi< Device, Controller > bugui::midi< Device, Controller > bugui::midi< Device, Controller > bugui::hardware< Device, Controller > bugui::hardware< Device, Controller > bugui::hardware< Device, Controller > bugui::hardware< Device, Controller >

Additional Inherited Members

Public Member Functions inherited from bugui::grid< Device, Controller >
presserget_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 inherited from bugui::grid< Device, Controller >
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 Member Functions inherited from bugui::buttons< Device, Controller >
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 inherited from bugui::grid< Device, Controller >
presser prsr
Protected Attributes inherited from bugui::buttons< Device, Controller >
button_presser btn_prsr

Detailed Description

template<typename Device, typename Controller>
struct bugui::component< Device, Controller >

Inherits from all type of hardware components like grid, buttons... Provides the hardware type with the functionalities to interact with each components.


The documentation for this struct was generated from the following file: