Flipper Zero Firmware
Loading...
Searching...
No Matches
number_input.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <gui/view.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15typedef struct NumberInput NumberInput;
16
18typedef void (*NumberInputCallback)(void* context, int32_t number);
19
27
32void number_input_free(NumberInput* number_input);
33
41
53 NumberInput* number_input,
54 NumberInputCallback input_callback,
55 void* callback_context,
56 int32_t current_number,
57 int32_t min_value,
58 int32_t max_value);
59
65void number_input_set_header_text(NumberInput* number_input, const char* text);
66
67#ifdef __cplusplus
68}
69#endif
NumberInput * number_input_alloc(void)
Allocate and initialize Number input.
Definition number_input.c:381
void number_input_free(NumberInput *number_input)
Deinitialize and free byte input.
Definition number_input.c:401
void number_input_set_header_text(NumberInput *number_input, const char *text)
Set byte input header text.
Definition number_input.c:445
void number_input_set_result_callback(NumberInput *number_input, NumberInputCallback input_callback, void *callback_context, int32_t current_number, int32_t min_value, int32_t max_value)
Set byte input result callback.
Definition number_input.c:420
void(* NumberInputCallback)(void *context, int32_t number)
Callback to be called on save button press.
Definition number_input.h:18
View * number_input_get_view(NumberInput *number_input)
Get byte input view.
Definition number_input.c:415
Definition number_input.c:8
Definition view_i.h:16
GUI: View API.