BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::hardware< 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 <hardware.hpp>

Inheritance diagram for bugui::hardware< Device, Controller >:
bugui::init< Device > bugui::clear< Device > bugui::grid< Device, Controller > bugui::buttons< Device, Controller > bugui::protocol< component< Device, class Device::buttons > > bugui::clear< component< Device, class Device::buttons > > bugui::init< component< Device, class Device::buttons > > bugui::common< Controller > bugui::base_hardware bugui::protocol< component< Device, class Device::grid > > bugui::clear< component< Device, class Device::grid > > bugui::init< component< Device, class Device::grid > > bugui::common< Controller > bugui::base_hardware bugui::protocol< component< Device, class Device::clear > > bugui::protocol< component< Device, class Device::init > >

Public Member Functions

 hardware (Controller *ctrlr)
void setup () override
 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...
void reset () override
 Turns off all diplays (LEDs, screens, visual feedback).
Public Member Functions inherited from bugui::grid< Device, Controller >
void set_grid (painter &p) override
 Pass a reference to the painter object and display it's content to the grid.
Public Member Functions inherited from bugui::base_hardware
virtual stdx::error set_midi_in_port (const libremidi::observer &observer, std::string_view port_name)
virtual stdx::error set_midi_out_port (const libremidi::observer &observer, std::string_view port_name)
Public Member Functions inherited from bugui::buttons< Device, Controller >
void set_button (const button_painter &p) override
 Pass a reference to the button_painter object and display it's content to the device's buttons.

Additional Inherited Members

Protected Member Functions inherited from bugui::init< Device >
void component_setup ()
Protected Member Functions inherited from bugui::clear< Device >
void component_reset ()
Protected Member Functions inherited from bugui::grid< Device, Controller >
void component_reset ()
Protected Member Functions inherited from bugui::common< Controller >
 common (Controller *pntr)
Protected Member Functions inherited from bugui::buttons< Device, Controller >
void component_reset ()
Protected Attributes inherited from bugui::common< Controller >
Controller * controller

Detailed Description

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

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

Member Function Documentation

◆ reset()

template<typename Device, typename Controller>
void bugui::hardware< Device, Controller >::reset ( )
inlineoverridevirtual

Turns off all diplays (LEDs, screens, visual feedback).

Implements bugui::base_hardware.

◆ setup()

template<typename Device, typename Controller>
void bugui::hardware< Device, Controller >::setup ( )
inlineoverridevirtual

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...

Implements bugui::base_hardware.


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