Files
pti-ledy/structs.h
T
2026-02-04 09:41:32 +01:00

58 lines
926 B
C

#ifndef STRUCTS_H
#define STRUCTS_H
#include "config.h"
struct Cursor
{
short x;
short y;
Cursor() : x(0), y(0) {}
};
struct Pixel
{
unsigned short x;
unsigned short y;
uint32_t color;
};
struct TextNode
{
char content[TEXT_MAX_LENGTH];
uint32_t color;
short pos_x;
short pos_y;
struct CharacterSize
{
unsigned short height;
unsigned short width;
} characterSize;
unsigned char character_count;
unsigned char scroll_slowness;
unsigned char scroll_progress;
bool is_deleted;
bool is_scrolling;
TextNode() : color(0), pos_x(0), pos_y(0), character_count(0), scroll_slowness(0), scroll_progress(0), characterSize({7,5}), is_deleted(true), is_scrolling() {}
};
struct RGB
{
unsigned char r;
unsigned char g;
unsigned char b;
};
struct Image
{
RGB pixels[PANEL_PIXEL_COUNT][DISPLAY_MAX_X + 1];
unsigned short width;
unsigned short height;
};
#endif // STRUCTS_H