Supporting setting panel layout
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user