4#include "../bitmap.hpp"
uint16_t color_t
An RGB565 color value. 5 bits red, 6 bits green, 5 bits blue.
Definition color.hpp:13
shader_animated_t shader_t
A pixel shader that may or may not update based on the current time.
Definition renderable.hpp:48
A basic image with no compression or transparency.
Definition bitmap.hpp:11
Size size
The size of the image in pixels.
Definition bitmap.hpp:13
color_t *const data
The list of pixels in the image.
Definition bitmap.hpp:15
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17
A basic image with no compression, and with 1 bit of transparency per pixel.
Definition transparent_bitmap.hpp:11
color_t averageColor() const override
Get the average color of the bitmap.
uint8_t *const mask
The transparency mask.
Definition transparent_bitmap.hpp:17
void renderAt(const Coords &coords, const shader_t &shader=0) const override
Display the bitmap directly onto the screen.
TransparentBitmap(const Size &size, color_t *const data, uint8_t *const mask)
Construct a transparent bitmap image from static data.