Refine editor host boundary
This commit is contained in:
28
editor/app/Host/Win32/Windowing/EditorWindowSupport.h
Normal file
28
editor/app/Host/Win32/Windowing/EditorWindowSupport.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "StringEncoding.h"
|
||||
#include "TextFormat.h"
|
||||
|
||||
#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;
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user