R: changes name convention on objective elements

This commit is contained in:
2026-04-06 15:02:20 +03:00
parent 707087b8fe
commit 2414abbdcb
59 changed files with 643 additions and 638 deletions
+9 -8
View File
@@ -1,26 +1,27 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2026 Oleksandr Zhylin */
#ifndef INPUT_H
#define INPUT_H
#ifndef W_INPUT_H
#define W_INPUT_H
#include "../main.h"
#include <widget_core.h>
#include <stdint.h>
typedef struct {
widget_t w;
w_t w;
char value[INPUT_TEXT];
int64_t cur_pos; /* is relative to the end of a string */
int64_t value_len;
int64_t max_len;
bool is_disabled;
bool is_hidden;
} input_t;
} w_input_t;
bool input_default_key_action(callback_args_t *args);
input_t *init_input(WINDOW **win, widget_t *w_parent, char *label,
bool w_input_default_key_action(w_cb_args_t *args);
w_input_t *w_input_init(WINDOW **win, w_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);
int32_t w_input_draw(w_input_t *input, uint32_t active_id);
void w_input_destroy(w_input_t *input);
#endif