GUI: Integer string keyboard view module API. More...
#include <gui/view.h>
Go to the source code of this file.
Typedefs | |
typedef struct NumberInput | NumberInput |
Number input anonymous structure | |
typedef void(* | NumberInputCallback) (void *context, int32_t number) |
Callback to be called on save button press. | |
Functions | |
NumberInput * | number_input_alloc (void) |
Allocate and initialize Number input. | |
void | number_input_free (NumberInput *number_input) |
Deinitialize and free byte input. | |
View * | number_input_get_view (NumberInput *number_input) |
Get byte input view. | |
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. | |
void | number_input_set_header_text (NumberInput *number_input, const char *text) |
Set byte input header text. | |
GUI: Integer string keyboard view module API.
NumberInput * number_input_alloc | ( | void | ) |
Allocate and initialize Number input.
This Number input is used to enter Numbers (Integers).
void number_input_free | ( | NumberInput * | number_input | ) |
Deinitialize and free byte input.
number_input | Number input instance |
View * number_input_get_view | ( | NumberInput * | number_input | ) |
Get byte input view.
number_input | byte input instance |
void number_input_set_header_text | ( | NumberInput * | number_input, |
const char * | text ) |
Set byte input header text.
number_input | byte input instance |
text | text to be shown |
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.
number_input | byte input instance | |
input_callback | input callback fn | |
callback_context | callback context | |
[in] | current_number | The current number |
min_value | Min number value | |
max_value | Max number value |