2026-04-15 08:24:06 +08:00
|
|
|
#include "Platform/Win32/EditorWindow.h"
|
2026-04-19 15:52:28 +08:00
|
|
|
#include "Platform/Win32/EditorWindowChromeController.h"
|
2026-04-15 08:24:06 +08:00
|
|
|
|
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
|
|
2026-04-15 12:38:45 +08:00
|
|
|
bool EditorWindow::ShouldUseDetachedTitleBarTabStrip() const {
|
2026-04-19 15:52:28 +08:00
|
|
|
return m_chromeController->ShouldUseDetachedTitleBarTabStrip(*this);
|
2026-04-15 12:38:45 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-15 08:24:06 +08:00
|
|
|
Host::BorderlessWindowChromeHitTarget EditorWindow::HitTestBorderlessWindowChrome(
|
|
|
|
|
LPARAM lParam) const {
|
2026-04-19 15:52:28 +08:00
|
|
|
return m_chromeController->HitTestChrome(*this, lParam);
|
2026-04-15 08:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Host::BorderlessWindowChromeLayout EditorWindow::ResolveBorderlessWindowChromeLayout(
|
|
|
|
|
float clientWidthDips) const {
|
2026-04-19 15:52:28 +08:00
|
|
|
return m_chromeController->ResolveChromeLayout(*this, clientWidthDips);
|
2026-04-15 08:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void EditorWindow::AppendBorderlessWindowChrome(
|
2026-04-19 15:52:28 +08:00
|
|
|
::XCEngine::UI::UIDrawList& drawList,
|
2026-04-15 08:24:06 +08:00
|
|
|
float clientWidthDips) const {
|
2026-04-19 15:52:28 +08:00
|
|
|
m_chromeController->AppendChrome(*this, drawList, clientWidthDips);
|
2026-04-15 08:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|