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

Handle presses and enables painting on the device's button grid. More...

#include <grid.hpp>

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

Public Member Functions

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)
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 void set_button (const button_painter &)
 Pass a reference to the button_painter object and display it's content to the device's buttons.

Protected Member Functions

void component_reset ()
Protected Member Functions inherited from bugui::common< Controller >
 common (Controller *pntr)

Additional Inherited Members

Protected Attributes inherited from bugui::common< Controller >
Controller * controller

Detailed Description

template<has_grid Device, typename Controller>
struct bugui::grid< Device, Controller >

Handle presses and enables painting on the device's button grid.

Member Function Documentation

◆ set_grid()

template<has_grid Device, typename Controller>
void bugui::grid< Device, Controller >::set_grid ( painter & )
inlineoverridevirtual

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

Reimplemented from bugui::base_hardware.


The documentation for this struct was generated from the following file:
  • include/bugui/hardware/components/grid.hpp