[FL-1286] Add vertical screen orientation (#472)

This commit is contained in:
Albert Kharisov
2021-05-19 12:43:15 +03:00
committed by GitHub
parent f5f9a04fda
commit 4fa49882e0
16 changed files with 248 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
View* view_alloc() {
View* view = furi_alloc(sizeof(View));
view->orientation = ViewOrientationHorizontal;
return view;
}
@@ -59,6 +60,11 @@ void view_set_context(View* view, void* context) {
view->context = context;
}
void view_set_orientation(View* view, ViewOrientation orientation) {
furi_assert(view);
view->orientation = orientation;
}
void view_allocate_model(View* view, ViewModelType type, size_t size) {
furi_assert(view);
furi_assert(size > 0);