|
BuGUI
BUtton Grid User Interface
|
The painter class. More...
#include <painter.hpp>
Public Member Functions | |
| painter (int width, int height) | |
| void | reset () |
| void | set (int x, int y) |
| void | ofset (int x, int y) |
| bool | bound_at_offset (rectangle *bounds) |
| void | set_paint_over (bool value) |
| void | draw_cell (int x, int y) |
| void | draw_line (int x1, int y1, int x2, int y2) |
| color | read_clear (int x, int y) |
| 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. | |
| Public Member Functions inherited from bugui::rectangle | |
| int | get_x () const |
| int | get_y () const |
| void | set_x (int new_x) |
| void | set_y (int new_y) |
| int | get_width () const |
| int | get_height () const |
| void | set_width (int new_width) |
| void | set_height (int new_height) |
| void | set_size (int new_size) |
| void | set (int new_x, int new_y) |
| void | set (int new_x, int new_y, int new_width, int new_height) |
| const point & | get_top_left () const |
| const point & | get_bottom_right () const |
| void | set_top_left (point &&new_top_left) |
| void | set_bottom_right (point &&new_bottom_right) |
Additional Inherited Members | |
| Protected Member Functions inherited from bugui::rectangle | |
| virtual bool | overlap (rectangle &other) const |
| Checks whether this rectangle overlaps with another. This funciton is the bassis for handling inputs on the grid. The presser object also inherits from rectangle, and this function is called to check if a press event overlaps with a widget. If so, we can determine that this particular widget is pressed. Custom widgets can override this funciton for a more fine grained handling of presses. | |
| Protected Attributes inherited from bugui::base_painter | |
| color | current_color |
The painter class.