Files
XCEngine/editor/app/State/EditorUtilityWindowRequestState.h

21 lines
592 B
C++

#pragma once
#include "UtilityWindows/EditorUtilityWindowRuntime.h"
#include <optional>
namespace XCEngine::UI::Editor::App {
struct EditorUtilityWindowRequestState {
std::optional<EditorUtilityWindowKind> pendingKind = {};
};
void ResetEditorUtilityWindowRequestState(EditorUtilityWindowRequestState& state);
void RequestEditorUtilityWindow(
EditorUtilityWindowRequestState& state,
EditorUtilityWindowKind kind);
std::optional<EditorUtilityWindowKind> ConsumeEditorUtilityWindowRequest(
EditorUtilityWindowRequestState& state);
} // namespace XCEngine::UI::Editor::App