From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/screen.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 examples/dte/screen.h (limited to 'examples/dte/screen.h') diff --git a/examples/dte/screen.h b/examples/dte/screen.h new file mode 100644 index 0000000..a3041c0 --- /dev/null +++ b/examples/dte/screen.h @@ -0,0 +1,59 @@ +#ifndef SCREEN_H +#define SCREEN_H + +#include +#include +#include "buffer.h" +#include "editor.h" +#include "syntax/color.h" +#include "terminal/output.h" +#include "terminal/terminal.h" +#include "util/debug.h" +#include "util/macros.h" +#include "util/utf8.h" +#include "view.h" +#include "window.h" + +typedef struct { + bool is_modified; + unsigned long id; + long cy; + long vx; + long vy; +} ScreenState; + +// screen.c +void update_screen(EditorState *e, const ScreenState *s); +void update_term_title(Terminal *term, const Buffer *buffer, bool set_window_title); +void update_window_sizes(Terminal *term, Frame *frame); +void update_screen_size(Terminal *term, Frame *root_frame); +void set_color(Terminal *term, const ColorScheme *colors, const TermColor *color); +void set_builtin_color(Terminal *term, const ColorScheme *colors, BuiltinColorEnum c); +void mask_color(TermColor *color, const TermColor *over); +void start_update(Terminal *term); +void end_update(EditorState *e); +void normal_update(EditorState *e); +void restore_cursor(EditorState *e); + +// screen-cmdline.c +void update_command_line(EditorState *e); +void show_message(Terminal *term, const ColorScheme *colors, const char *msg, bool is_error); + +// screen-tabbar.c +void print_tabbar(Terminal *term, const ColorScheme *colors, Window *window); + +// screen-status.c +void update_status_line(const Window *window); + +// screen-view.c +void update_range(EditorState *e, const View *view, long y1, long y2); + +// screen-window.c +void update_all_windows(EditorState *e); +void update_buffer_windows(EditorState *e, const Buffer *buffer); + +// screen-prompt.c +char status_prompt(EditorState *e, const char *question, const char *choices) NONNULL_ARGS; +char dialog_prompt(EditorState *e, const char *question, const char *choices) NONNULL_ARGS; + +#endif -- cgit v1.2.3