41 lines
611 B
C
41 lines
611 B
C
#ifndef STRUCTS_H
|
|
#define STRUCTS_H
|
|
|
|
#include "config.h"
|
|
|
|
struct Cursor
|
|
{
|
|
unsigned short x;
|
|
unsigned short y;
|
|
|
|
Cursor() : x(0), y(0) {}
|
|
};
|
|
|
|
struct Pixel
|
|
{
|
|
unsigned short x;
|
|
unsigned short y;
|
|
uint32_t color;
|
|
};
|
|
|
|
struct Text
|
|
{
|
|
char content[TEXT_MAX_LENGTH];
|
|
uint32_t color;
|
|
unsigned short pos_x;
|
|
unsigned short pos_y;
|
|
struct CharacterSize
|
|
{
|
|
unsigned short height;
|
|
unsigned short width;
|
|
} characterSize;
|
|
unsigned char character_count;
|
|
bool deleted;
|
|
|
|
|
|
Text() : color(0), pos_x(0), pos_y(0), character_count(0), characterSize({7,5}), deleted(true) {}
|
|
};
|
|
|
|
#endif // STRUCTS_H
|
|
|