1#ifndef YAZE_APP_PLATFORM_WASM_CONTROL_API_H_
2#define YAZE_APP_PLATFORM_WASM_CONTROL_API_H_
10#include "absl/status/status.h"
19class WorkspaceWindowManager;
49 static void Initialize(editor::EditorManager* editor_manager);
71 static std::string
SwitchEditor(
const std::string& editor_name);
94 static std::string
OpenWindow(
const std::string& card_id);
95 static std::string
OpenPanel(
const std::string& card_id);
102 static std::string
CloseWindow(
const std::string& card_id);
103 static std::string
ClosePanel(
const std::string& card_id);
110 static std::string
ToggleWindow(
const std::string& card_id);
111 static std::string
TogglePanel(
const std::string& card_id);
179 static std::string
SetPanelLayout(
const std::string& layout_name);
256 static std::string
ReadRomBytes(
int address,
int count);
264 static std::string
WriteRomBytes(
int address,
const std::string& bytes_json);
352 static std::string
GetPaletteData(
const std::string& group_name,
int palette_id);
367 static std::string
LoadFont(
const std::string& name,
const std::string& data,
float size);
391 static std::string
SetSelection(
const std::string& ids_json);
446 static std::string
AgentSetConfig(
const std::string& config_json);
494 static editor::EditorManager* editor_manager_;
495 static bool initialized_;
498 static editor::WorkspaceWindowManager* GetWindowManager();
501 static std::string EditorTypeToString(
int type);
504 static int StringToEditorType(
const std::string& name);
530 static std::string
OpenWindow(
const std::string&) {
return "{}"; }
531 static std::string
OpenPanel(
const std::string& card_id) {
534 static std::string
CloseWindow(
const std::string&) {
return "{}"; }
The EditorManager controls the main editor window and manages the various editor classes.
absl::Status LoadFont(const FontConfig &font_config)