[FL-1286] Add vertical screen orientation (#472)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user