base progress

This commit is contained in:
ed
2025-02-01 23:43:46 -05:00
parent 078bf4b271
commit e19dd6b58c
14 changed files with 182 additions and 76 deletions
+41 -2
View File
@@ -1,4 +1,43 @@
#ifdef MD_INTELLISENSE_DIRECTIVES
#pragma once
# pragma once
# include "linkage.h"
# include "strings.h"
# include "arena.h"
#endif
////////////////////////////////
//~ rjf: Text 2D Coordinates & Ranges
typedef struct TxtPt TxtPt;
struct TxtPt
{
S64 line;
S64 column;
};
typedef struct TxtRng TxtRng;
struct TxtRng
{
TxtPt min;
TxtPt max;
};
////////////////////////////////
//~ rjf: String Pair Types
typedef struct String8TxtPtPair String8TxtPtPair;
struct String8TxtPtPair
{
String8 string;
TxtPt pt;
};
////////////////////////////////
//~ rjf: Text Path Helpers
internal String8TxtPtPair str8_txt_pt_pair_from_string(String8 string);
////////////////////////////////
//~ rjf: Text Wrapping
internal String8List wrapped_lines_from_string(Arena *arena, String8 string, U64 first_line_max_width, U64 max_width, U64 wrap_indent);