yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
pixel_index_command.h File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <map>
#include <optional>
#include <string>
#include <vector>
#include "absl/status/statusor.h"
#include "app/editor/graphics/color_id_permutation.h"
#include "app/editor/graphics/graphics_edit_context.h"
#include "app/editor/graphics/graphics_sheet_sync.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::editor::PixelIndexTarget
 
struct  yaze::editor::PixelIndexPlan
 

Namespaces

namespace  yaze
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 

Typedefs

using yaze::editor::PixelIndexPermutation = std::array<uint8_t, 8>
 

Enumerations

enum class  yaze::editor::PixelIndexOperation { yaze::editor::kPermutation , yaze::editor::kArtReplacement }
 
enum class  yaze::editor::PixelIndexExecution { yaze::editor::kApply , yaze::editor::kUndo , yaze::editor::kRedo }
 

Functions

absl::StatusOr< std::vector< PixelIndexTarget > > yaze::editor::MakePixelIndexRectangleSelection (uint16_t sheet_id, int x, int y, int width, int height)
 
absl::StatusOr< PixelIndexPlan > yaze::editor::PlanPixelIndexPermutation (const GraphicsEditorState &state, const std::vector< PixelIndexTarget > &targets, const PixelIndexPermutation &permutation)
 
absl::StatusOr< PixelIndexPlan > yaze::editor::PlanPixelIndexReplacement (const GraphicsEditorState &state, const std::vector< PixelIndexTarget > &targets, const std::map< uint16_t, std::vector< uint8_t > > &after_sheets, std::string description)
 
absl::Status yaze::editor::ExecutePixelIndexPlan (GraphicsEditorState &state, const PixelIndexPlan &plan, PixelIndexExecution execution, const std::function< absl::Status(size_t)> &after_sheet_write)
 
absl::Status yaze::editor::ApplyPixelIndexPlan (GraphicsEditorState &state, UndoManager &history, const PixelIndexPlan &plan)
 
absl::Status yaze::editor::ApplyPixelIndexPermutation (GraphicsEditorState &state, UndoManager &history, const std::vector< PixelIndexTarget > &targets, const PixelIndexPermutation &permutation)
 
absl::StatusOr< PixelIndexPlan > yaze::editor::PlanColorIdPermutation (const GraphicsEditorState &state, const std::vector< PixelIndexTarget > &targets, const ColorIdPermutation &permutation)
 
absl::Status yaze::editor::ApplyColorIdPermutation (GraphicsEditorState &state, UndoManager &history, const std::vector< PixelIndexTarget > &targets, const ColorIdPermutation &permutation)