Files
CSPP-coursework/final/editor.h
T
FantasyPvP 214dfc66a5 bugfixes
2024-11-07 13:52:28 +00:00

21 lines
390 B
C

#include "dynstr.h"
#include <stdint.h>
typedef struct {
uint32_t lines;
uint32_t screen_line;
uint32_t screen_col;
bool editmode;
String_t* buffer;
} Editor;
Editor new_editor();
Editor editor_from(char* input_string);
void move_cursor(Editor* self, int x, int y);
void delchar(Editor* self);
void addchar(Editor* self, char c);
String_t* to_string(Editor* self);