[FL-867] GUI: ViewPort arrangement API, better input and draw dispatching (#333)
* Input: refactoring, platform agnostic key configuration, update usage across project. Minor queue usage fixes and tick timings. * Gui: lighter and more efficient input and draw call dispatching, ViewPort rearranging API. View: conditional model updates, API usage update. * BT: smaller update delay * GUI: ViewPort visibility check
This commit is contained in:
@@ -91,26 +91,38 @@ void dialog_set_header_text(Dialog* dialog, const char* text) {
|
||||
furi_assert(dialog);
|
||||
furi_assert(text);
|
||||
with_view_model(
|
||||
dialog->view, (DialogModel * model) { model->header_text = text; });
|
||||
dialog->view, (DialogModel * model) {
|
||||
model->header_text = text;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
void dialog_set_text(Dialog* dialog, const char* text) {
|
||||
furi_assert(dialog);
|
||||
furi_assert(text);
|
||||
with_view_model(
|
||||
dialog->view, (DialogModel * model) { model->text = text; });
|
||||
dialog->view, (DialogModel * model) {
|
||||
model->text = text;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
void dialog_set_left_button_text(Dialog* dialog, const char* text) {
|
||||
furi_assert(dialog);
|
||||
furi_assert(text);
|
||||
with_view_model(
|
||||
dialog->view, (DialogModel * model) { model->left_text = text; });
|
||||
dialog->view, (DialogModel * model) {
|
||||
model->left_text = text;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
void dialog_set_right_button_text(Dialog* dialog, const char* text) {
|
||||
furi_assert(dialog);
|
||||
furi_assert(text);
|
||||
with_view_model(
|
||||
dialog->view, (DialogModel * model) { model->right_text = text; });
|
||||
dialog->view, (DialogModel * model) {
|
||||
model->right_text = text;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user