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::buttons< Device, Controller > bugui::buttons< Device, Controller > bugui::grid< Device, Controller > bugui::grid< Device, Controller > bugui::component< Device, Controller > bugui::component< Device, Controller > bugui::component< Device, Controller > bugui::component< Device, Controller > bugui::midi_in< Device, Controller > bugui::midi_out< Device, Controller > bugui::sysex_out< Device, Controller > bugui::midi_in< Device, Controller > bugui::midi_out< Device, Controller > bugui::sysex_out< Device, Controller > bugui::midi_in< Device, Controller > bugui::midi_out< Device, Controller > bugui::sysex_out< Device, Controller > bugui::midi_in< Device, Controller > bugui::midi_out< Device, Controller > bugui::sysex_out< Device, Controller >

Public Member Functions

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.

Detailed Description

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

Member Function Documentation

◆ clear()

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

◆ set_button()

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

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

Implemented in bugui::midi_out< Device, Controller >, and bugui::sysex_out< Device, Controller >.

◆ set_grid()

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

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

Implemented in bugui::midi_out< Device, Controller >, and bugui::sysex_out< 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::midi< Device, Controller >.


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