Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8524e79feThis file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef GUI_TEXTFIELD_H_
#define GUI_TEXTFIELD_H_
#include "widget.h"
#include "display.h"
#include "font.h"
class Textfield : public Widget {
public:
Textfield(const char *text, const font_t font);
~Textfield();
private:
void draw(coords_t offset) override;
static constexpr color_t Foreground = COLOR_FG_DEFAULT;
static constexpr color_t Background = COLOR_BG_DEFAULT;
char *text;
font_t font;
};
#endif