yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
scratch_space_view.cc
Go to the documentation of this file.
2
5#include "util/log.h"
6
7namespace yaze::editor {
8
9void ScratchSpaceView::Draw(bool* p_open) {
10 (void)p_open;
11 const auto ctx = CurrentOverworldWindowContext();
12 if (!ctx)
13 return;
14
15 // Call the existing DrawScratchSpace implementation
16 if (auto status = ctx.editor->DrawScratchSpace(); !status.ok()) {
17 LOG_ERROR("ScratchSpaceView", "Failed to draw: %s",
18 status.ToString().c_str());
19 }
20}
21
23
24} // namespace yaze::editor
Provides a scratch workspace for layout planning and clipboard operations.
void Draw(bool *p_open) override
Draw the panel content.
#define LOG_ERROR(category, format,...)
Definition log.h:109
Editors are the view controllers for the application.
OverworldWindowContext CurrentOverworldWindowContext()
#define REGISTER_PANEL(PanelClass)
Auto-registration macro for panels with default constructors.