1#ifndef YAZE_APP_EDITOR_GRAPHICS_PALETTE_PIXEL_COMMAND_H_
2#define YAZE_APP_EDITOR_GRAPHICS_PALETTE_PIXEL_COMMAND_H_
21 std::vector<gfx::PaletteColorChange>
colors;
33 const std::function<absl::Status(
size_t)>& after_sheet_write = {});
38 GraphicsEditorState& state, UndoManager& history,
Shared state between GraphicsEditor panel components.
The Graphics editor's path for sheet pixel writes.
Editors are the view controllers for the application.
absl::Status ExecutePalettePixelPlan(GraphicsEditorState &state, const PalettePixelPlan &plan, bool redo, const std::function< absl::Status(size_t)> &after_sheet_write)
std::array< uint8_t, 8 > PalettePermutation
absl::StatusOr< PalettePixelPlan > PlanPalettePixelPermutation(const GraphicsEditContext &source, const std::vector< size_t > &targets, const PalettePermutation &permutation)
absl::Status ApplyPalettePixelPermutation(GraphicsEditorState &state, UndoManager &history, const std::vector< size_t > &targets, const PalettePermutation &permutation)
GraphicsEditContext source
std::vector< SheetPixelDiff > sheets
std::vector< size_t > targets
std::vector< gfx::PaletteColorChange > colors