#ifndef EDITOR_H #define EDITOR_H #include #include "editor.h" struct tart_window window; struct commandMode { struct tart_cstring prompt_cstr; struct tart_cstring input_cstr; char inputBuffer[255]; int inputBufferIdx; char* input; }; struct bottomBar { struct tart_cstring mode_cstr; struct tart_cstring file_cstr; struct tart_cstring branch_cstr; struct tart_cell bottomBar_cell; }; struct InsertMode { }; void Create_commandMode(); void CreateWindow() { } void InitCommandMode() { } void InitInsertMode(); void InitNormalMode(); void InitNomiMode(); void CommandMode(struct commandMode cmdm) { tart_draw_cstring_position(tart_get_buffer(&window, 0), cmdm.input_cstr, (struct tart_vec2){16,10}); tart_draw_cstring_position(tart_get_buffer(&window, 0), cmdm.prompt_cstr, (struct tart_vec2){0,10}); } void InsertMode(); void NormalMode(); void NomiMode(); void Update(); void UpdateBigin(); void UpdateEnd(); void OnQuit(); void OnStart(); void Draw(); #endif /* ifndef EDITOR_H */