summaryrefslogtreecommitdiff
path: root/include/yasl/app.h
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-12 22:57:27 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-12 22:57:27 +0300
commite389c0fe03a53dd295fee138db7acf1861710370 (patch)
treea922aa05559770bef0b81f0de2f2aab634bfb35d /include/yasl/app.h
parent47bd4dbe2e4a576a1f02507e9a87502d99df4f52 (diff)
feat(notepad): add file open/save, tab indent/unindent, clipboard, search, and drag-and-drop
Diffstat (limited to 'include/yasl/app.h')
-rw-r--r--include/yasl/app.h6
1 files changed, 6 insertions, 0 deletions
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;
@@ -128,6 +129,11 @@ struct yasl_event {
} 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;
} drop_files;