30 lines
623 B
C
30 lines
623 B
C
#ifndef APP_H
|
|
#define APP_H
|
|
|
|
#include "app_ressources.h"
|
|
#include "buffer.h"
|
|
#include "editor.h"
|
|
#include <stddef.h>
|
|
|
|
typedef struct {
|
|
Buffer** buffers;
|
|
size_t buffers_capacity;
|
|
size_t buffers_size;
|
|
AppRessources res;
|
|
Editor editor;
|
|
} App;
|
|
|
|
void app_init(App* app);
|
|
void app_deinit(App* app);
|
|
int app_ressources_load(App* app);
|
|
void app_ressources_unload(App* app);
|
|
void app_new_file(App* app);
|
|
void app_open_file(App* app, const char* path);
|
|
void app_prepare(App* app);
|
|
void app_handle_keydown(App* app, int keysum);
|
|
void app_render(App* app, void* renderer);
|
|
|
|
extern const Theme defaultTheme;
|
|
|
|
#endif
|