1#ifndef YAZE_APP_PLATFORM_WASM_CONTROL_API_H_
2#define YAZE_APP_PLATFORM_WASM_CONTROL_API_H_
10#include "absl/status/status.h"
49 static void Initialize(editor::EditorManager* editor_manager);
71 static std::string
SwitchEditor(
const std::string& editor_name);
94 static std::string
OpenPanel(
const std::string& card_id);
101 static std::string
ClosePanel(
const std::string& card_id);
108 static std::string
TogglePanel(
const std::string& card_id);
160 static std::string
ShowOnlyPanel(
const std::string& card_id);
171 static std::string
SetPanelLayout(
const std::string& layout_name);
242 static std::string
ReadRomBytes(
int address,
int count);
250 static std::string
WriteRomBytes(
int address,
const std::string& bytes_json);
338 static std::string
GetPaletteData(
const std::string& group_name,
int palette_id);
353 static std::string
LoadFont(
const std::string& name,
const std::string& data,
float size);
377 static std::string
SetSelection(
const std::string& ids_json);
432 static std::string
AgentSetConfig(
const std::string& config_json);
480 static editor::EditorManager* editor_manager_;
481 static bool initialized_;
484 static editor::PanelManager* GetPanelRegistry();
487 static std::string EditorTypeToString(
int type);
490 static int StringToEditorType(
const std::string& name);
516 static std::string
OpenPanel(
const std::string&) {
return "{}"; }
517 static std::string
ClosePanel(
const std::string&) {
return "{}"; }
518 static std::string
TogglePanel(
const std::string&) {
return "{}"; }
The EditorManager controls the main editor window and manages the various editor classes.
absl::Status LoadFont(const FontConfig &font_config)