This commit is contained in:
Krzosa Karol
2025-04-05 18:59:26 +02:00
parent f3aa52ba3d
commit 2907762d5f
12 changed files with 220 additions and 26 deletions

View File

@@ -10,5 +10,5 @@ void run_all_tests(void) {
test_string16();
test_hash_table();
test_intern_table();
ui_test_text_replace();
test_array();
}// run_all_tests()

View File

@@ -1,21 +1,61 @@
#include "core/core.h"
#include "os/os.h"
#include "app/app.h"
#include "ui/ui.h"
// #include "ui/ui.h"
#include "core/core.c"
#include "os/os.c"
#include "app/app.c"
#include "render/render.c"
#include "ui/ui.c"
// #include "ui/ui.c"
#include "text_editor.gen.c"
// @todo:
// Create a complete string16 library
// Win32 SDL_GetPrefPath, create configuration directory, get path
// Win32 set screen saver
// Win32 upload icon
/*todo:
* OK Create a complete string16 library
* OK (Win32) Win32 SDL_GetPrefPath, create configuration directory, get path
* Array
*
*
*
* Win32 upload icon
**/
typedef struct caret_t caret_t;
struct caret_t {
i64 ifront;
union {
r1i64_t range;
i64 pos[2];
};
};
typedef struct xy_t xy_t;
struct xy_t {
i64 col;
i64 line;
};
typedef struct buffer_id_t buffer_id_t;
struct buffer_id_t { i64 e; };
typedef struct buffer_t buffer_t;
struct buffer_t {
buffer_id_t id;
union {
s16_t string;
struct {
u16 *data;
i64 len;
};
};
i64 cap;
i64 *line_starts;
i64 line_count;
};
fn_export b32 app_update(thread_ctx_t *thread_ctx, app_frame_t *frame) {
tcx = thread_ctx;
@@ -40,6 +80,10 @@ fn_export b32 app_update(thread_ctx_t *thread_ctx, app_frame_t *frame) {
rn_reload_font(font_size, frame->dpr);
}
rn_begin_frame(frame);
rn_begin(white_color);
rn_end();
return true;
}