This commit is contained in:
2025-02-06 14:33:23 +01:00
parent 2a2313dff7
commit aaf3dfb40c
5 changed files with 203 additions and 29 deletions

View File

@@ -41,13 +41,15 @@ typedef struct {
void init_editor(TextEditor *editor, BitmapFont *font, int x, int y, SDL_Renderer *renderer);
// Insert a new line at a specific position
void insert_line(TextEditor *editor, int position, const char *text);
void insert_line(TextEditor *editor, int position, const char *text, SDL_Renderer *renderer);
// Insert a new line at a specific position
void insert_line_rel(TextEditor *editor);
void insert_line_rel(TextEditor *editor, SDL_Renderer *renderer);
void editor_render(TextEditor *editor, SDL_Renderer * renderer);
void remove_character(TextEditor *editor, SDL_Renderer *renderer);
// Insert a character at the current cursor position
void insert_character(TextEditor *editor, char ch, SDL_Renderer *renderer);