Go to the source code of this file.
Macros | |
| #define | TAB_ITEM(w) if (ImGui::BeginTabItem(w)) { |
| #define | END_TAB_ITEM() |
| #define | BEGIN_TABLE(l, n, f) if (ImGui::BeginTable(l, n, f, ImVec2(0, 0))) { |
| #define | SETUP_COLUMN(l) ImGui::TableSetupColumn(l); |
| #define | TABLE_HEADERS() |
| #define | NEXT_COLUMN() ImGui::TableNextColumn(); |
| #define | END_TABLE() |
| #define | HOVER_HINT(string) |
| #define | PRINT_IF_ERROR(expression) |
| #define | EXIT_IF_ERROR(expression) |
| #define | RETURN_VOID_IF_ERROR(expression) |
| #define | RETURN_IF_ERROR(expression) |
| #define | ASSIGN_OR_RETURN(type_variable_name, expression) |
| #define | ASSIGN_OR_RETURN_IMPL(error_or_value, type_variable_name, expression) |
| #define | ASSIGN_OR_LOG_ERROR(type_variable_name, expression) |
| #define | ASSIGN_OR_LOG_ERROR_IMPL(error_or_value, type_variable_name, expression) |
| #define | APPEND_NUMBER(expression, number) APPEND_NUMBER_INNER(expression, number) |
| #define | APPEND_NUMBER_INNER(expression, number) expression##number |
| #define | TEXT_WITH_SEPARATOR(text) |
| #define | TABLE_BORDERS_RESIZABLE ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable |
| #define | CLEAR_AND_RETURN_STATUS(status) |
| #define | RETURN_IF_EXCEPTION(expression) |
| #define | SDL_RETURN_IF_ERROR() |
| #define | RETURN_IF_ROM_OUT_OF_RANGE(rom, offset, size) |
| Validate ROM offset is within bounds before reading/writing. | |
| #define | RETURN_FALSE_IF_ROM_OUT_OF_RANGE(rom, offset, size) |
| Validate ROM offset is within bounds, returning false on failure. | |
| #define | RETURN_IF_ROOM_OUT_OF_RANGE(room_id) |
| Validate room ID is within valid dungeon room range. | |
| #define | RETURN_IF_MAP_OUT_OF_RANGE(map_id) |
| Validate overworld map ID is within valid range. | |
| #define | RETURN_IF_PALETTE_OUT_OF_RANGE(palette_id, max_palettes) |
| Validate palette index is within SNES palette group range. | |
Typedefs | |
| using | uint = unsigned int |
| #define BEGIN_TABLE | ( | l, | |
| n, | |||
| f ) if (ImGui::BeginTable(l, n, f, ImVec2(0, 0))) { |
Definition at line 11 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::DrawPrototypeViewer(), and yaze::editor::MemoryEditor::Update().
| #define SETUP_COLUMN | ( | l | ) | ImGui::TableSetupColumn(l); |
Definition at line 12 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::DrawPrototypeViewer(), and yaze::editor::MemoryEditor::Update().
| #define TABLE_HEADERS | ( | ) |
Definition at line 14 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::DrawPrototypeViewer().
| #define NEXT_COLUMN | ( | ) | ImGui::TableNextColumn(); |
Definition at line 18 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::DrawPrototypeViewer(), and yaze::editor::MemoryEditor::Update().
| #define END_TABLE | ( | ) |
Definition at line 20 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::DrawPrototypeViewer(), and yaze::editor::MemoryEditor::Update().
| #define HOVER_HINT | ( | string | ) |
Definition at line 24 of file macro.h.
Referenced by yaze::editor::OverworldToolbar::Draw(), yaze::editor::PaletteControlsPanel::DrawApplyButtons(), yaze::editor::MapPropertiesSystem::DrawCanvasToolbar(), yaze::editor::GraphicsEditor::DrawFileImport(), yaze::editor::MapPropertiesSystem::DrawGraphicsPopup(), yaze::editor::GraphicsEditor::DrawObjImport(), yaze::editor::GraphicsEditor::DrawPaletteControls(), yaze::editor::PaletteControlsPanel::DrawPaletteGroupSelector(), yaze::editor::LinkSpritePanel::DrawPaletteSelector(), yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::MapPropertiesSystem::DrawPalettesPopup(), yaze::editor::PaletteControlsPanel::DrawPresets(), yaze::editor::LinkSpritePanel::DrawPreviewCanvas(), yaze::editor::MapPropertiesSystem::DrawPropertiesPopup(), yaze::editor::MapPropertiesSystem::DrawQuickAccessPopup(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::SheetBrowserPanel::DrawSearchBar(), yaze::editor::GraphicsEditor::DrawTilemapImport(), yaze::editor::LinkSpritePanel::DrawToolbar(), yaze::editor::PixelEditorPanel::DrawToolbar(), yaze::editor::PixelEditorPanel::DrawViewControls(), yaze::editor::MapPropertiesSystem::DrawViewPopup(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
| #define PRINT_IF_ERROR | ( | expression | ) |
Definition at line 28 of file macro.h.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::MessageEditor::DrawExpandedMessageSettings(), yaze::editor::EditorManager::Initialize(), yaze::editor::OverworldEditor::RefreshChildMap(), and yaze::editor::MemoryEditor::Update().
| #define EXIT_IF_ERROR | ( | expression | ) |
| #define RETURN_VOID_IF_ERROR | ( | expression | ) |
| #define RETURN_IF_ERROR | ( | expression | ) |
| #define ASSIGN_OR_RETURN | ( | type_variable_name, | |
| expression ) |
Definition at line 62 of file macro.h.
Referenced by yaze::cli::RomSandboxManager::ActiveSandboxRomPath(), yaze::cli::overworld::AnalyzeTileUsage(), yaze::zelda3::Overworld::AssembleMap16Tiles(), yaze::zelda3::Overworld::AssembleMap32Tiles(), yaze::cli::overworld::BuildMapSummary(), yaze::zelda3::Inventory::BuildTileset(), yaze::zelda3::TitleScreen::BuildTileset(), yaze::zelda3::OverworldMapScreen::Create(), yaze::editor::GraphicsEditor::DecompressImportData(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::net::HttpLibClient::Delete(), yaze::cli::OverworldDoctorCommandHandler::Execute(), yaze::cli::OverworldValidateCommandHandler::Execute(), yaze::cli::handlers::ResourceListCommandHandler::Execute(), yaze::cli::overworld::FindTileMatches(), yaze::cli::Tile16Proposal::FromJson(), yaze::net::HttpLibClient::Get(), yaze::zelda3::Overworld::GetTile16ForTile32(), yaze::cli::agent::HandleAcceptCommand(), yaze::cli::agent::HandleDescribeCommand(), yaze::cli::HandleOverworldDescribeMapLegacy(), yaze::cli::HandleOverworldFindTileLegacy(), yaze::cli::HandleOverworldListWarpsLegacy(), yaze::cli::agent::HandleRunCommand(), yaze::editor::AgentCollaborationCoordinator::JoinSession(), yaze::editor::DungeonEditorV2::Load(), yaze::editor::ScreenEditor::Load(), yaze::editor::OverworldEditor::Load(), yaze::zelda3::Overworld::Load(), yaze::Load2BppGraphics(), yaze::editor::DungeonCanvasViewer::LoadAndRenderRoomGraphics(), yaze::zelda3::Overworld::LoadDiggableTiles(), yaze::zelda3::LoadDungeonMaps(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::LoadEntrances(), yaze::zelda3::LoadEntranceTileTypes(), yaze::zelda3::LoadHoles(), yaze::zelda3::music::MusicBank::LoadInstruments(), yaze::zelda3::Inventory::LoadItemIcons(), yaze::zelda3::LoadItems(), yaze::LoadLinkGraphics(), yaze::zelda3::OverworldMapScreen::LoadMapData(), yaze::zelda3::OverworldMap::LoadPalette(), yaze::editor::PolyhedralEditorPanel::LoadShapes(), yaze::zelda3::Overworld::LoadSpritesFromMap(), yaze::zelda3::TitleScreen::LoadTitleScreen(), yaze::cli::agent::anonymous_namespace{general_commands.cc}::ParseDescribeArgs(), yaze::test::TestScriptParser::ParseFromFile(), yaze::cli::anonymous_namespace{test_suite_loader.cc}::ParseScalarConfig(), yaze::net::HttpLibClient::Post(), yaze::net::HttpLibClient::Put(), yaze::Rom::ReadHelper(), yaze::Rom::ReadTile16(), yaze::Rom::ReadTile16(), yaze::cli::resources::CommandHandler::Run(), yaze::zelda3::TitleScreen::Save(), yaze::Rom::SaveGfxGroups(), yaze::zelda3::SaveGfxGroups(), yaze::project::YazeProject::SaveToYazeFormat(), yaze::gfx::lc_lz2::ValidateCompressionResult(), yaze::gfx::lc_lz2::ValidateCompressionResultV3(), and yaze::cli::WriteJUnitReport().
| #define ASSIGN_OR_RETURN_IMPL | ( | error_or_value, | |
| type_variable_name, | |||
| expression ) |
| #define ASSIGN_OR_LOG_ERROR | ( | type_variable_name, | |
| expression ) |
| #define ASSIGN_OR_LOG_ERROR_IMPL | ( | error_or_value, | |
| type_variable_name, | |||
| expression ) |
| #define APPEND_NUMBER | ( | expression, | |
| number ) APPEND_NUMBER_INNER(expression, number) |
| #define APPEND_NUMBER_INNER | ( | expression, | |
| number ) expression##number |
| #define TEXT_WITH_SEPARATOR | ( | text | ) |
Definition at line 90 of file macro.h.
Referenced by yaze::editor::DisplayPalette().
| #define TABLE_BORDERS_RESIZABLE ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable |
| #define CLEAR_AND_RETURN_STATUS | ( | status | ) |
Definition at line 97 of file macro.h.
Referenced by yaze::editor::GraphicsEditor::Update().
| #define RETURN_IF_EXCEPTION | ( | expression | ) |
| #define SDL_RETURN_IF_ERROR | ( | ) |
| #define RETURN_IF_ROM_OUT_OF_RANGE | ( | rom, | |
| offset, | |||
| size ) |
Validate ROM offset is within bounds before reading/writing.
Returns absl::OutOfRangeError if the offset + size exceeds ROM size.
| rom | Pointer to the Rom object |
| offset | Start offset for the operation |
| size | Number of bytes to read/write |
| #define RETURN_FALSE_IF_ROM_OUT_OF_RANGE | ( | rom, | |
| offset, | |||
| size ) |
Validate ROM offset is within bounds, returning false on failure.
Use this variant for bool-returning functions that can't return Status.
| rom | Pointer to the Rom object |
| offset | Start offset for the operation |
| size | Number of bytes to read/write |
| #define RETURN_IF_ROOM_OUT_OF_RANGE | ( | room_id | ) |
Validate room ID is within valid dungeon room range.
SNES A Link to the Past has 296 dungeon rooms (0x000-0x127).
| room_id | The room ID to validate |
| #define RETURN_IF_MAP_OUT_OF_RANGE | ( | map_id | ) |
Validate overworld map ID is within valid range.
SNES A Link to the Past has 160 overworld maps (0x00-0x9F).
| map_id | The map ID to validate |
| #define RETURN_IF_PALETTE_OUT_OF_RANGE | ( | palette_id, | |
| max_palettes ) |
Validate palette index is within SNES palette group range.
SNES palettes have 16 entries (0-15) per sub-palette.
| palette_id | The palette index to validate |
| max_palettes | Maximum number of palettes in the group |