Smallcase folders part 1
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "Display/Graphics/Framebuffer.h"
|
||||
#include "Display/Graphics/Color.h"
|
||||
#include "Display/UI/Text/Renderer.h"
|
||||
|
||||
namespace display::ui::header
|
||||
{
|
||||
// ===== Layout =====
|
||||
constexpr int HEADER_WIDTH = 240; // 116
|
||||
constexpr int HEADER_HEIGHT = 16; // 116
|
||||
constexpr int PADDING = 4; // 4
|
||||
constexpr std::string_view HEADER_FONT_NAME = "Pixel10";
|
||||
constexpr int HEADER_FONT_SIZE = 14; // 12
|
||||
|
||||
class Header
|
||||
{
|
||||
public:
|
||||
Header();
|
||||
|
||||
static constexpr int width() { return HEADER_WIDTH; }
|
||||
static constexpr int height() { return HEADER_HEIGHT; }
|
||||
|
||||
void draw(
|
||||
display::graphics::Framebuffer &fb,
|
||||
display::ui::text::Renderer &text,
|
||||
int x, int y);
|
||||
|
||||
private:
|
||||
std::string getCurrentDateTime();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user