chore: checkpoint current workspace changes

This commit is contained in:
2026-04-11 22:14:02 +08:00
parent 3e55f8c204
commit 8848cfd958
227 changed files with 34027 additions and 6711 deletions

View File

@@ -26,6 +26,7 @@ struct UIEditorTreeViewItem {
std::uint32_t depth = 0u;
bool forceLeaf = false;
float desiredHeight = 0.0f;
::XCEngine::UI::UITextureHandle leadingIcon = {};
};
struct UIEditorTreeViewState {
@@ -40,6 +41,8 @@ struct UIEditorTreeViewMetrics {
float indentWidth = 18.0f;
float disclosureExtent = 12.0f;
float disclosureLabelGap = 6.0f;
float iconExtent = 18.0f;
float iconLabelGap = 2.0f;
float labelInsetY = 6.0f;
float cornerRounding = 6.0f;
float borderThickness = 1.0f;
@@ -70,6 +73,7 @@ struct UIEditorTreeViewLayout {
std::vector<std::size_t> visibleItemIndices = {};
std::vector<::XCEngine::UI::UIRect> rowRects = {};
std::vector<::XCEngine::UI::UIRect> disclosureRects = {};
std::vector<::XCEngine::UI::UIRect> iconRects = {};
std::vector<::XCEngine::UI::UIRect> labelRects = {};
std::vector<bool> itemHasChildren = {};
std::vector<bool> itemExpanded = {};