ui: key press callbacks (not finished)

This commit is contained in:
2026-04-09 15:44:30 +03:00
parent 48b24fdd46
commit 173bd3000d
9 changed files with 132 additions and 63 deletions
+3 -3
View File
@@ -72,6 +72,8 @@ typedef struct {
void *active_el;
} w_cb_args_t;
typedef void (*w_cb_t)(w_cb_args_t *args);
typedef struct w_t {
int64_t id;
char title[DIALOGUE_TITLE];
@@ -93,11 +95,9 @@ typedef struct w_t {
} ps; /* position (relative to the window) */
WINDOW *const *parent_win;
struct w_t *w_parent;
void (*callback)(w_cb_args_t *args);
w_cb_t callback;
} w_t;
typedef void (*w_cb_t)(w_cb_args_t *args);
enum w_pmt_attrs {
PMT_POS_CENTER = 01,
PMT_ALIGN_CENTER = 03,