Supporting setting panel layout

This commit is contained in:
2026-09-19 19:41:39 -07:00
parent ace69f613e
commit da6bda7ca7
24 changed files with 257 additions and 37 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <string>
#include <vector>
namespace sophia {
struct DockLayout {
float leftWidth = 0.2f;
float rightWidth = 0.25f;
float bottomHeight = 0.25f;
std::vector<std::string> left;
std::vector<std::string> right;
std::vector<std::string> bottom;
std::vector<std::string> center;
bool empty() const {
return left.empty() && right.empty() && bottom.empty() && center.empty();
}
};
} // namespace sophia