feat(new_editor): add standalone add-component utility window
This commit is contained in:
20
new_editor/app/State/EditorUtilityWindowRequestState.h
Normal file
20
new_editor/app/State/EditorUtilityWindowRequestState.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "Platform/Win32/EditorUtilityWindowKind.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
|
||||
Reference in New Issue
Block a user