chore(ui): make ORIENTATION enum generic

This commit is contained in:
fallenoak committed 2025-12-23 11:21:38 -06:00
1 parent 32b5d6402b
commit a6e93122a7
5 files changed
+14 -14

No files matched your search

+4 -4
View File
@@ -87,15 +87,15 @@ int32_t StringToFrameStrata(const char* string, FRAME_STRATA& strata) {
return 0;
}
int32_t StringToOrientation(const char* string, SLIDER_ORIENTATION& orientation) {
int32_t StringToOrientation(const char* string, ORIENTATION& orientation) {
struct OrientationEntry {
SLIDER_ORIENTATION value;
ORIENTATION value;
const char* string;
};
static OrientationEntry orientationMap[] = {
{ SLIDER_HORIZONTAL, "HORIZONTAL" },
{ SLIDER_VERTICAL, "VERTICAL" },
{ ORIENTATION_HORIZONTAL, "HORIZONTAL" },
{ ORIENTATION_VERTICAL, "VERTICAL" },
};
for (auto& entry : orientationMap) {