BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
base_painter.hpp
1#pragma once
2#include <bugui/color/color.hpp>
3
4namespace bugui
5{
8struct base_painter
9{
11 void set_color(uint8_t&& r = 0
12 , uint8_t&& g = 0
13 , uint8_t&& b = 0
14 , uint8_t&& a = 255);
15
17 void set_blink(uint8_t&& red
18 , uint8_t&& green
19 , uint8_t&& blue
20 , uint8_t&& alpha = 255);
21
23 void set_pulse(uint8_t&& red
24 , uint8_t&& green
25 , uint8_t&& blue
26 , uint8_t&& alpha = 255);
27
28protected:
29 explicit base_painter();
30
31 color current_color;
32};
33
34} // namespace bugui
void set_pulse(uint8_t &&red, uint8_t &&green, uint8_t &&blue, uint8_t &&alpha=255)
Sets primary and secondary colour along with the pulsing state.
void set_blink(uint8_t &&red, uint8_t &&green, uint8_t &&blue, uint8_t &&alpha=255)
Sets primary and secondary colour along with the blinking state.
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.
Generic colour class holding RGBA coloour values. The blinking and pulsing states indicate discrete o...
Definition color.hpp:14