BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::button_painter Struct Referencefinal

Conveys button colors from the controller to the base_hardware. More...

#include <button_painter.hpp>

Inheritance diagram for bugui::button_painter:
bugui::base_painter

Public Member Functions

void set (labels &&l, uint8_t &&r, uint8_t &&g, uint8_t &&b, uint8_t &&a)
 Sets the the button labled l to a constant colour. see color::set.
void set_blink (labels &&l, uint8_t &&r, uint8_t &&g, uint8_t &&b, uint8_t &&a, uint8_t &&blink_r, uint8_t &&blink_g, uint8_t &&blink_b, uint8_t &&blink_a)
 Sets the the button labled l to alternate between the primaray and secondary colour. see color::set_blink.
void set_pulse (labels &&l, uint8_t &&r, uint8_t &&g, uint8_t &&b, uint8_t &&a, uint8_t &&pulse_r, uint8_t &&pulse_g, uint8_t &&pulse_b, uint8_t &&pulse_a)
 Sets the the button labled l to a smooth cycle between the primaray and secondary colour. see color::set_pulse.
color get_color () const
 Retieves the current color.
labels get_label () const
 Retieves the current button label.
Public Member Functions inherited from bugui::base_painter
void set_color (uint8_t &&r=0, uint8_t &&g=0, uint8_t &&b=0, uint8_t &&a=255)
 Sets the primary colour along with the constant state.
void set_blink (uint8_t &&red, uint8_t &&green, uint8_t &&blue, uint8_t &&alpha=255, uint8_t &&secondary_red=0, uint8_t &&secondary_green=0, uint8_t &&secondary_blue=0, uint8_t &&secondary_alpha=255)
 Sets primary and secondary colour along with the blinking state.
void set_pulse (uint8_t &&red, uint8_t &&green, uint8_t &&blue, uint8_t &&alpha=255, uint8_t &&secondary_red=0, uint8_t &&secondary_green=0, uint8_t &&secondary_blue=0, uint8_t &&secondary_alpha=255)
 Sets primary and secondary colour along with the pulsing state.

Additional Inherited Members

Protected Attributes inherited from bugui::base_painter
color current_color

Detailed Description

Conveys button colors from the controller to the base_hardware.


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