|
@@ -23,8 +23,8 @@
|
|
|
#include <text_input/uart_text_input.h>
|
|
#include <text_input/uart_text_input.h>
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
#include <string.h>
|
|
#include <string.h>
|
|
|
-#include <jsmn/jsmn.h>
|
|
|
|
|
#include <jsmn/jsmn_furi.h>
|
|
#include <jsmn/jsmn_furi.h>
|
|
|
|
|
+#include <jsmn/jsmn.h>
|
|
|
|
|
|
|
|
#define EASY_TAG "EasyFlipper"
|
|
#define EASY_TAG "EasyFlipper"
|
|
|
|
|
|
|
@@ -267,4 +267,22 @@ bool easy_flipper_set_loading(
|
|
|
*/
|
|
*/
|
|
|
bool easy_flipper_set_char_to_furi_string(FuriString **furi_string, char *buffer);
|
|
bool easy_flipper_set_char_to_furi_string(FuriString **furi_string, char *buffer);
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * @brief Initialize a TextBox object
|
|
|
|
|
+ * @param text_box The TextBox object to initialize
|
|
|
|
|
+ * @param view_id The ID/Index of the view
|
|
|
|
|
+ * @param text The text to display in the text box
|
|
|
|
|
+ * @param start_at_end Start the text box at the end
|
|
|
|
|
+ * @param previous_callback The previous callback function (can be set to NULL)
|
|
|
|
|
+ * @param view_dispatcher The ViewDispatcher object
|
|
|
|
|
+ * @return true if successful, false otherwise
|
|
|
|
|
+ */
|
|
|
|
|
+bool easy_flipper_set_text_box(
|
|
|
|
|
+ TextBox **text_box,
|
|
|
|
|
+ int32_t view_id,
|
|
|
|
|
+ char *text,
|
|
|
|
|
+ bool start_at_end,
|
|
|
|
|
+ uint32_t(previous_callback)(void *),
|
|
|
|
|
+ ViewDispatcher **view_dispatcher);
|
|
|
|
|
+
|
|
|
#endif
|
|
#endif
|