Files
XCEngine/new_editor/app/Platform/Win32/EditorWindowTitleBarInteraction.cpp

69 lines
2.0 KiB
C++

#include "Platform/Win32/EditorWindow.h"
#include "Platform/Win32/EditorWindowChromeController.h"
#include "Platform/Win32/EditorWindowConstants.h"
#include "Platform/Win32/EditorWindowInternalState.h"
#include <algorithm>
#include <windowsx.h>
namespace XCEngine::UI::Editor::App {
using namespace EditorWindowInternal;
bool EditorWindow::UpdateBorderlessWindowChromeHover(LPARAM lParam) {
return m_chromeController->UpdateChromeHover(*this, lParam);
}
bool EditorWindow::HandleBorderlessWindowChromeButtonDown(LPARAM lParam) {
return m_chromeController->HandleChromeButtonDown(*this, lParam);
}
bool EditorWindow::HandleBorderlessWindowChromeButtonUp(
EditorContext& editorContext,
bool globalTabDragActive,
LPARAM lParam) {
return m_chromeController->HandleChromeButtonUp(
*this,
editorContext,
globalTabDragActive,
lParam);
}
bool EditorWindow::HandleBorderlessWindowChromeDoubleClick(
EditorContext& editorContext,
bool globalTabDragActive,
LPARAM lParam) {
return m_chromeController->HandleChromeDoubleClick(
*this,
editorContext,
globalTabDragActive,
lParam);
}
bool EditorWindow::HandleBorderlessWindowChromeDragRestorePointerMove(
EditorContext& editorContext,
bool globalTabDragActive) {
return m_chromeController->HandleChromeDragRestorePointerMove(
*this,
editorContext,
globalTabDragActive);
}
void EditorWindow::ClearBorderlessWindowChromeDragRestoreState() {
m_chromeController->ClearChromeDragRestoreState(*this);
}
void EditorWindow::ClearBorderlessWindowChromeState() {
m_chromeController->ClearChromeState(*this);
}
void EditorWindow::ExecuteBorderlessWindowChromeAction(
EditorContext& editorContext,
bool globalTabDragActive,
Host::BorderlessWindowChromeHitTarget target) {
m_chromeController->ExecuteChromeAction(*this, editorContext, globalTabDragActive, target);
}
} // namespace XCEngine::UI::Editor::App