29 lines
718 B
C++
29 lines
718 B
C++
#pragma once
|
|
|
|
#include "State/EditorSession.h"
|
|
|
|
#include <XCEditor/Panels/UIEditorPanelContentHost.h>
|
|
|
|
#include <XCEngine/UI/DrawData.h>
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
class ConsolePanel {
|
|
public:
|
|
void Update(
|
|
const EditorSession& session,
|
|
const UIEditorPanelContentHostFrame& contentHostFrame);
|
|
void Append(::XCEngine::UI::UIDrawList& drawList) const;
|
|
|
|
private:
|
|
const UIEditorPanelContentHostPanelState* FindMountedConsolePanel(
|
|
const UIEditorPanelContentHostFrame& contentHostFrame) const;
|
|
|
|
bool m_visible = false;
|
|
::XCEngine::UI::UIRect m_bounds = {};
|
|
const std::vector<EditorConsoleEntry>* m_entries = nullptr;
|
|
};
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|
|
|