Files
XCEngine/editor/app/Host/Win32/Windowing/EditorWindowSupport.h

29 lines
666 B
C
Raw Normal View History

#pragma once
2026-04-27 23:18:04 +08:00
#include "System/Win32StringEncoding.h"
2026-04-27 19:16:08 +08:00
#include "TextFormat.h"
2026-04-25 16:46:01 +08:00
#include <string_view>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
namespace XCEngine::UI::Editor::App::EditorWindowSupport {
inline constexpr unsigned int kDefaultDpi = 96u;
inline constexpr float kBaseDpiScale = 96.0f;
inline constexpr float kBorderlessTitleBarFontSize = 12.0f;
2026-04-25 16:46:01 +08:00
UINT QuerySystemDpi();
UINT QueryWindowDpi(HWND hwnd);
bool ResolveVerboseRuntimeTraceEnabled();
void LogRuntimeTrace(std::string_view channel, std::string_view message);
using App::TruncateText;
using App::WideToUtf8;
} // namespace XCEngine::UI::Editor::App::EditorWindowSupport