CMake integration

This commit is contained in:
2026-02-09 17:44:07 +02:00
parent ba77017857
commit 6dd887d502
55 changed files with 247 additions and 183 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef INPUT_H
#define INPUT_H
#include "../main.h"
#include <ui-widget-core.h>
#include <stdint.h>
typedef struct {
widget_t w;
char value[INPUT_TEXT];
uint32_t cur_pos; /* is relative to the end of a string */
uint32_t value_len;
uint32_t max_len;
uint32_t is_disabled : 1;
uint32_t is_hidden : 1;
} input_t;
input_t *init_input(WINDOW **win, widget_t *w_parent, char *label,
uint32_t size, uint32_t is_hidden_value);
int32_t draw_input(input_t *input, uint32_t active_id);
void destroy_input(input_t *input);
#endif