gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
bmp.hpp
Go to the documentation of this file.
1
2#pragma once
3
4// Comment this out to disable BMP support.
5// This should never be needed since BMP support doesn't depend
6// on any libraries due to how trivial it is to decode.
7#define IMAGE_SUPPORT_BMP
8
9#include "../image_file.hpp"
10
11#ifdef IMAGE_SUPPORT_BMP
12
13namespace ui {
14
18struct Bmp : public ImageFile {
20
21 void renderAt(const Coords &coords, const shader_t &shader = 0) const override;
22 Size getSize() const override;
23};
24
25} // namespace ui
26
27#endif
shader_animated_t shader_t
A pixel shader that may or may not update based on the current time.
Definition renderable.hpp:48
A renderable for BMP encoded image data.
Definition bmp.hpp:18
void renderAt(const Coords &coords, const shader_t &shader=0) const override
Display the renderable directly onto the screen.
Size getSize() const override
Get the size of the renderable.
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17
The common interface for images read from raw data.
Definition image_file.hpp:23
ImageFile(uint8_t *const bytes, size_t length)
Constructor.
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17