started working on scrolling, enter key works now
This commit is contained in:
+6
-3
@@ -3,19 +3,22 @@
|
||||
|
||||
typedef struct {
|
||||
uint32_t lines;
|
||||
uint32_t screen_line;
|
||||
uint32_t screen_col;
|
||||
uint32_t buffer_line;
|
||||
uint32_t buffer_col;
|
||||
uint32_t y_offset;
|
||||
uint32_t x_offset;
|
||||
bool editmode;
|
||||
String_t* buffer;
|
||||
} Editor;
|
||||
|
||||
Editor new_editor();
|
||||
|
||||
Editor editor_from(char* input_string);
|
||||
Editor editor_from(String_t input_string);
|
||||
|
||||
void move_cursor(Editor* self, int x, int y);
|
||||
void delchar(Editor* self);
|
||||
void addchar(Editor* self, char c);
|
||||
void pressed_enter(Editor* self);
|
||||
void switch_mode(Editor* self);
|
||||
|
||||
String_t* to_string(Editor* self);
|
||||
|
||||
Reference in New Issue
Block a user