mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-31 02:23:04 -07:00
Merge remote-tracking branch '956MB:feat/archive-select-multiple' into 956/prs #327
This commit is contained in:
@@ -5,11 +5,6 @@
|
||||
|
||||
ARRAY_DEF(ElementArray, WidgetElement*, M_PTR_OPLIST); // NOLINT
|
||||
|
||||
struct Widget {
|
||||
View* view;
|
||||
void* context;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
ElementArray_t element;
|
||||
} GuiWidgetModel;
|
||||
@@ -119,6 +114,23 @@ static void widget_add_element(Widget* widget, WidgetElement* element) {
|
||||
true);
|
||||
}
|
||||
|
||||
WidgetElement* widget_add_file_list_element(
|
||||
Widget* widget,
|
||||
uint8_t x,
|
||||
uint8_t y,
|
||||
uint8_t lines,
|
||||
FuriString** files,
|
||||
size_t count,
|
||||
uint8_t scrollbar_y,
|
||||
uint8_t scrollbar_height,
|
||||
bool show_size) {
|
||||
furi_assert(widget);
|
||||
WidgetElement* file_list_element = widget_element_file_list_create(
|
||||
widget, x, y, lines, files, count, scrollbar_y, scrollbar_height, show_size);
|
||||
widget_add_element(widget, file_list_element);
|
||||
return file_list_element;
|
||||
}
|
||||
|
||||
void widget_add_string_multiline_element(
|
||||
Widget* widget,
|
||||
uint8_t x,
|
||||
|
||||
Reference in New Issue
Block a user