BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::base_painter Struct Reference

Holds a color object and provides the relevant setters. More...

#include <base_painter.hpp>

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

Public Member Functions

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.

Protected Attributes

color current_color

Detailed Description

Holds a color object and provides the relevant setters.


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