Files
XCEngine/editor/app/Windowing/EditorWindowShared.h

28 lines
796 B
C++

#pragma once
#include "Support/EnvironmentFlags.h"
#include <XCEngine/UI/DrawData.h>
#include <cstdint>
namespace XCEngine::UI::Editor::App {
struct EditorWindowScreenPoint {
std::int32_t x = 0;
std::int32_t y = 0;
};
inline constexpr float kBorderlessTitleBarHeightDips = 28.0f;
inline const ::XCEngine::UI::UIColor kShellSurfaceColor(0.10f, 0.10f, 0.10f, 1.0f);
inline const ::XCEngine::UI::UIColor kShellBorderColor(0.15f, 0.15f, 0.15f, 1.0f);
inline const ::XCEngine::UI::UIColor kShellTextColor(0.92f, 0.92f, 0.92f, 1.0f);
inline const ::XCEngine::UI::UIColor kShellMutedTextColor(0.70f, 0.70f, 0.70f, 1.0f);
inline bool IsEditorWindowVerboseRuntimeTraceEnabled() {
return IsEnvironmentFlagEnabled("XCUIEDITOR_VERBOSE_TRACE");
}
} // namespace XCEngine::UI::Editor::App