Files
BBS-Client-TUI/src/widget/checkbox.h
T
zheiling 0bf2446664 + UI: checkboxes
F Login: Fixes scenario when credentials are incorrect
R UI: group -> refactors key processing
2026-03-11 14:21:25 +02:00

18 lines
403 B
C

#ifndef CHECKBOX_H
#define CHECKBOX_H
#include <widget_core.h>
#include <stdint.h>
typedef struct {
widget_t w;
bool is_disabled;
bool value;
} checkbox_t;
bool checkbox_default_key_action(callback_args_t *args);
checkbox_t *init_checkbox(WINDOW **win, widget_t *w_parent, char *label);
int32_t draw_checkbox(checkbox_t *cbx, uint32_t active_id);
void destroy_checkbox(checkbox_t *cbx);
#endif