#pragma once


#include <stdbool.h>
#include <clayer/rasterworks.h>


#define PADDING 8


typedef struct
{
	int x, y;
} coord_t;


typedef enum
{
	plain, header, quote
} mode_t;


typedef struct
{
	mode_t mode;
	coord_t pos, font_size;

	int color;
	bool italic, bold, underline, strike;
	float mul;
} pen_t;


void render_DrawLen(pen_t *pen, char *buf, char *text, int len);
void render_DrawText(pen_t *pen, char *buf, char *text);
void render_NewLn(pen_t *pen, char *buf);
void render_Rect(int color, char *buf, int pos_x, int pos_y, int len_x, int len_y);
void render_Info(char *buf, int window_w, int window_h);
