C++ apps: templated scene controller (#517)
* C++ apps: templated scene controller * templated app: fix type names * templated app: text store component * Applications: add "Templated Scene" application * templated app: refractoring * Gui module byte input: fix docs * templated app: new byte input scene * templated app: dialog ex view module * templated app: popup view module * templated app: dialog-ex view module, fix docs * templated app: text input view module * Gui module text input: fix docs * Furi: duplicated include * templated app: record holder (controller) class * templated app: view modules can now be accessed via cast * templated app: remove unused includes * templated app: fix return code
This commit is contained in:
@@ -46,7 +46,7 @@ void byte_input_free(ByteInput* byte_input);
|
||||
View* byte_input_get_view(ByteInput* byte_input);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize and free byte input
|
||||
* @brief Set byte input result callback
|
||||
*
|
||||
* @param byte_input byte input instance
|
||||
* @param input_callback input callback fn
|
||||
|
@@ -9,23 +9,31 @@ extern "C" {
|
||||
typedef struct TextInput TextInput;
|
||||
typedef void (*TextInputCallback)(void* context, char* text);
|
||||
|
||||
/* Allocate and initialize text input
|
||||
* This text input is used to enter string
|
||||
/**
|
||||
* @brief Allocate and initialize text input
|
||||
* This text input is used to enter string
|
||||
*
|
||||
*/
|
||||
TextInput* text_input_alloc();
|
||||
|
||||
/* Deinitialize and free text input
|
||||
/**
|
||||
* @brief Deinitialize and free text input
|
||||
*
|
||||
* @param text_input - Text input instance
|
||||
*/
|
||||
void text_input_free(TextInput* text_input);
|
||||
|
||||
/* Get text input view
|
||||
/**
|
||||
* @brief Get text input view
|
||||
*
|
||||
* @param text_input - Text input instance
|
||||
* @return View instance that can be used for embedding
|
||||
*/
|
||||
View* text_input_get_view(TextInput* text_input);
|
||||
|
||||
/* Deinitialize and free text input
|
||||
/**
|
||||
* @brief Set text input result callback
|
||||
*
|
||||
* @param text_input - Text input instance
|
||||
* @param callback - callback fn
|
||||
* @param callback_context - callback context
|
||||
@@ -39,7 +47,9 @@ void text_input_set_result_callback(
|
||||
char* text,
|
||||
uint8_t max_text_length);
|
||||
|
||||
/* Set text input header text
|
||||
/**
|
||||
* @brief Set text input header text
|
||||
*
|
||||
* @param text input - Text input instance
|
||||
* @param text - text to be shown
|
||||
*/
|
||||
|
Reference in New Issue
Block a user