diff options
author | pommicket <pommicket@gmail.com> | 2023-08-13 13:10:56 -0300 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-13 13:10:56 -0300 |
commit | 31c1f3acc7a56683b5512620419b8989a26dad4b (patch) | |
tree | 648fdec6c81f238903490f8c68092ad7241507fd /ted-internal.h | |
parent | 598d72c0674bb059c0f38f03c4851bcc61e5852d (diff) |
documentation
Diffstat (limited to 'ted-internal.h')
-rw-r--r-- | ted-internal.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ted-internal.h b/ted-internal.h index 64b3b6e..1b34fd4 100644 --- a/ted-internal.h +++ b/ted-internal.h @@ -14,6 +14,14 @@ #include "sdl-inc.h" #include "lib/glcorearb.h" +#if PROFILE +#define PROFILE_TIME(var) double var = time_get_seconds(); +#else +/// get current time for profiling +#define PROFILE_TIME(var) +#endif + + /// Minimum text size #define TEXT_SIZE_MIN 6 /// Maximum text size @@ -718,6 +726,8 @@ void node_free(Node *node); void node_frame(Ted *ted, Node *node, Rect r); // === syntax.c === +/// register built-in languages, etc. +void syntax_init(void); /// free up resources used by `syntax.c` void syntax_quit(void); @@ -726,6 +736,10 @@ void syntax_quit(void); SymbolInfo *tags_get_symbols(Ted *ted); // === ted.c === +/// set ted's active buffer to something nice +void ted_reset_active_buffer(Ted *ted); +/// set ted's error message to the buffer's error. +void ted_error_from_buffer(Ted *ted, TextBuffer *buffer); /// Get LSP by ID. Returns NULL if there is no LSP with that ID. LSP *ted_get_lsp_by_id(Ted *ted, LSPID id); /// go to this LSP document position, opening a new buffer containing the file if necessary. @@ -747,5 +761,9 @@ void ted_check_for_node_problems(Ted *ted); void ted_load_configs(Ted *ted); /// get colors to use for message box void ted_color_settings_for_message_type(MessageType type, ColorSetting *bg_color, ColorSetting *border_color); +/// Load all the fonts ted will use, freeing any previous ones. +void ted_load_fonts(Ted *ted); +/// Free all of ted's fonts. +void ted_free_fonts(Ted *ted); #endif // TED_INTERNAL_H_ |