BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::base_hardware Struct Referenceabstract

Provides base functionalities of the hardware object, and enables access from the base_controller. More...

#include <base_hardware.hpp>

Inheritance diagram for bugui::base_hardware:
bugui::buttons< Device, Controller > bugui::grid< Device, Controller > bugui::midi_common bugui::hardware< Device, Controller > bugui::hardware< Device, Controller > bugui::midi< Component > bugui::protocol< Component > bugui::clear< Component > bugui::init< Component >

Public Member Functions

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)
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 reset ()=0
 Turns off all diplays (LEDs, screens, visual feedback).
virtual int width () const
 Retrieves the with of the device's grid.
virtual int height () const
 Retrieves the height of the device's grid.
virtual void set_grid (painter &)
 Pass a reference to the painter object and display it's content to the grid.
virtual void set_button (const button_painter &)
 Pass a reference to the button_painter object and display it's content to the device's buttons.

Detailed Description

Provides base functionalities of the hardware object, and enables access from the base_controller.

Member Function Documentation

◆ reset()

virtual void bugui::base_hardware::reset ( )
pure virtual

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

Implemented in bugui::hardware< Device, Controller >.

◆ set_button()

virtual void bugui::base_hardware::set_button ( const button_painter & )
inlinevirtual

Pass a reference to the button_painter object and display it's content to the device's buttons.

Reimplemented in bugui::buttons< Device, Controller >.

◆ set_grid()

virtual void bugui::base_hardware::set_grid ( painter & )
inlinevirtual

Pass a reference to the painter object and display it's content to the grid.

Reimplemented in bugui::grid< Device, Controller >.

◆ setup()

virtual void bugui::base_hardware::setup ( )
pure virtual

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

Implemented in bugui::hardware< Device, Controller >.


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