mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 14:40:57 -04:00
27 lines
455 B
C++
27 lines
455 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
//
|
|
// Created by mateusz on 06.02.2020.
|
|
//
|
|
#pragma once
|
|
|
|
namespace gui
|
|
{
|
|
enum class Axis
|
|
{
|
|
X,
|
|
Y
|
|
};
|
|
|
|
inline Axis orthogonal(Axis axis)
|
|
{
|
|
if (axis == Axis::X) {
|
|
return Axis::Y;
|
|
}
|
|
else {
|
|
return Axis::X;
|
|
}
|
|
}
|
|
} // namespace gui
|