From e389c0fe03a53dd295fee138db7acf1861710370 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 22:57:27 +0300 Subject: feat(notepad): add file open/save, tab indent/unindent, clipboard, search, and drag-and-drop --- include/yasl/app.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/yasl/app.h') diff --git a/include/yasl/app.h b/include/yasl/app.h index 91de019..27523d5 100644 --- a/include/yasl/app.h +++ b/include/yasl/app.h @@ -67,6 +67,7 @@ typedef enum yasl_event_type { YASL_EVENT_WINDOW_FOCUS, /* System & external events */ + YASL_EVENT_PASTE, YASL_EVENT_DROP_FILES, YASL_EVENT_USER, } yasl_event_type; @@ -127,6 +128,11 @@ struct yasl_event { bool focused; } focus; + struct { + const char *text; /**< UTF-8 text from clipboard. */ + size_t len; + } paste; + struct { const char *files; /**< NUL-terminated text/uri-list. */ size_t len; -- cgit v1.2.3