Refactor editor windowing and update renderer regression

This commit is contained in:
2026-04-26 03:41:58 +08:00
parent 68993c46bb
commit 4fcaac81d6
39 changed files with 1181 additions and 872 deletions

View File

@@ -13,6 +13,26 @@ struct EditorWindowScreenPoint {
std::int32_t y = 0;
};
struct EditorWindowScreenRect {
std::int32_t left = 0;
std::int32_t top = 0;
std::int32_t right = 0;
std::int32_t bottom = 0;
[[nodiscard]] std::int32_t Width() const {
return right - left;
}
[[nodiscard]] std::int32_t Height() const {
return bottom - top;
}
[[nodiscard]] bool Contains(const EditorWindowScreenPoint& point) const {
return point.x >= left && point.x < right &&
point.y >= top && point.y < bottom;
}
};
inline constexpr float kBorderlessTitleBarHeightDips = 28.0f;
inline const ::XCEngine::UI::UIColor kShellSurfaceColor(0.10f, 0.10f, 0.10f, 1.0f);