From e72c327a84d1937c05cc14a5e2ab232584e2cb9d Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 12 Mar 2024 21:45:35 +0100 Subject: dragdrop file work --- src/platform.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/platform.h') diff --git a/src/platform.h b/src/platform.h index 3f41e4f..5926aeb 100644 --- a/src/platform.h +++ b/src/platform.h @@ -4,6 +4,7 @@ #include "array.h" #include "memory_bucket.h" #include "search.h" +#include "config.h" #include "../utf8.h" typedef struct t_ts_file_content @@ -29,7 +30,16 @@ typedef enum t_ts_file_open_error FILE_ERROR_TOO_BIG = 11, } ts_file_open_error; +typedef struct t_ts_dragdrop_data +{ + bool did_drop; + utf8_int8_t path[MAX_INPUT_LENGTH]; + bool is_dragging_file; +} ts_dragdrop_data; + + extern bool program_running; +extern ts_dragdrop_data dragdrop_data; bool ts_platform_dir_exists(utf8_int8_t* dir); ts_file_content ts_platform_read_file(char *path, const char *mode); -- cgit v1.2.3-70-g09d2