

Public Member Functions | |
| LibraryEdit (GraphicsScratchView *owner, GraphicsScratchLibrary before, GraphicsScratchLibrary after) | |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| std::string | Description () const override |
| Human-readable description (e.g., "Paint 12 tiles on map 5") | |
| size_t | MemoryUsage () const override |
| Approximate memory footprint for budget enforcement. | |
Public Member Functions inherited from yaze::editor::UndoAction | |
| virtual | ~UndoAction ()=default |
| virtual bool | CanMergeWith (const UndoAction &) const |
| virtual void | MergeWith (UndoAction &) |
Private Member Functions | |
| absl::Status | Restore (const GraphicsScratchLibrary &library) |
Private Attributes | |
| GraphicsScratchView * | owner_ |
| GraphicsScratchLibrary | before_ |
| GraphicsScratchLibrary | after_ |
Definition at line 30 of file graphics_scratch_view.cc.
|
inline |
Definition at line 32 of file graphics_scratch_view.cc.
|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 35 of file graphics_scratch_view.cc.
References before_, and Restore().

|
inlineoverridevirtual |
Implements yaze::editor::UndoAction.
Definition at line 36 of file graphics_scratch_view.cc.
References after_, and Restore().

|
inlineoverridevirtual |
Human-readable description (e.g., "Paint 12 tiles on map 5")
Implements yaze::editor::UndoAction.
Definition at line 37 of file graphics_scratch_view.cc.
|
inlineoverridevirtual |
Approximate memory footprint for budget enforcement.
Reimplemented from yaze::editor::UndoAction.
Definition at line 40 of file graphics_scratch_view.cc.
References after_, yaze::editor::GraphicsScratchLibrary::assets, and before_.
|
inlineprivate |
Definition at line 45 of file graphics_scratch_view.cc.
References yaze::editor::GraphicsScratchView::dirty_, yaze::editor::GraphicsScratchView::library(), yaze::editor::GraphicsScratchView::library_, yaze::editor::GraphicsScratchLibrary::next_id, owner_, and yaze::editor::GraphicsScratchView::RefreshPublishedBaselines().
Referenced by Redo(), and Undo().

|
private |
Definition at line 54 of file graphics_scratch_view.cc.
Referenced by Restore().
|
private |
Definition at line 55 of file graphics_scratch_view.cc.
Referenced by MemoryUsage(), and Undo().
|
private |
Definition at line 56 of file graphics_scratch_view.cc.
Referenced by MemoryUsage(), and Redo().