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
11
extern
"C"
{
12
#endif
13
15
typedef
struct
NumberInput
NumberInput
;
16
18
typedef
void (*
NumberInputCallback
)(
void
* context, int32_t number);
19
26
NumberInput
*
number_input_alloc
(
void
);
27
32
void
number_input_free
(
NumberInput
* number_input);
33
40
View
*
number_input_get_view
(
NumberInput
* number_input);
41
52
void
number_input_set_result_callback
(
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
65
void
number_input_set_header_text
(
NumberInput
* number_input,
const
char
* text);
66
67
#ifdef __cplusplus
68
}
69
#endif
number_input_alloc
NumberInput * number_input_alloc(void)
Allocate and initialize Number input.
Definition
number_input.c:381
number_input_free
void number_input_free(NumberInput *number_input)
Deinitialize and free byte input.
Definition
number_input.c:401
number_input_set_header_text
void number_input_set_header_text(NumberInput *number_input, const char *text)
Set byte input header text.
Definition
number_input.c:445
number_input_set_result_callback
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
NumberInputCallback
void(* NumberInputCallback)(void *context, int32_t number)
Callback to be called on save button press.
Definition
number_input.h:18
number_input_get_view
View * number_input_get_view(NumberInput *number_input)
Get byte input view.
Definition
number_input.c:415
NumberInput
Definition
number_input.c:8
View
Definition
view_i.h:16
view.h
GUI: View API.
applications
services
gui
modules
number_input.h
Generated by
1.12.0