#include <graphics_scratch_asset.h>
Public Member Functions | |
| absl::Status | Add (GraphicsScratchAsset asset) |
| std::string | Serialize () const |
Static Public Member Functions | |
| static absl::StatusOr< GraphicsScratchLibrary > | Parse (const std::string &text) |
Public Attributes | |
| uint64_t | next_id = 1 |
| std::vector< GraphicsScratchAsset > | assets |
Static Public Attributes | |
| static constexpr size_t | kMaxAssets = 128 |
Definition at line 95 of file graphics_scratch_asset.h.
|
inline |
Definition at line 100 of file graphics_scratch_asset.h.
References assets, yaze::editor::GraphicsScratchAsset::id, kMaxAssets, next_id, and yaze::editor::GraphicsScratchAsset::Validate().
Referenced by yaze::editor::GraphicsScratchView::CaptureSheet(), yaze::editor::GraphicsScratchView::Draw(), and yaze::editor::GraphicsScratchView::ImportBin().

|
inline |
Definition at line 110 of file graphics_scratch_asset.h.
References assets, and next_id.
Referenced by yaze::editor::graphics_scratch_storage::SaveLibrary().
|
inlinestatic |
Definition at line 130 of file graphics_scratch_asset.h.
References assets, yaze::editor::GraphicsScratchAsset::bpp, yaze::editor::GraphicsScratchAsset::id, kMaxAssets, yaze::editor::GraphicsScratchAsset::name, next_id, yaze::editor::GraphicsScratchAsset::original_chunk, yaze::editor::GraphicsScratchAsset::palette, yaze::editor::GraphicsScratchAsset::pixels, yaze::editor::GraphicsScratchAsset::source, yaze::editor::GraphicsScratchAsset::source_offset, yaze::editor::GraphicsScratchAsset::source_path, and yaze::editor::GraphicsScratchAsset::Validate().
Referenced by yaze::editor::graphics_scratch_storage::LoadLibrary().

|
staticconstexpr |
Definition at line 96 of file graphics_scratch_asset.h.
| uint64_t yaze::editor::GraphicsScratchLibrary::next_id = 1 |
Definition at line 97 of file graphics_scratch_asset.h.
Referenced by Add(), Parse(), yaze::editor::GraphicsScratchView::LibraryEdit::Restore(), and Serialize().
| std::vector<GraphicsScratchAsset> yaze::editor::GraphicsScratchLibrary::assets |
Definition at line 98 of file graphics_scratch_asset.h.
Referenced by Add(), yaze::editor::GraphicsScratchView::CaptureSheet(), yaze::editor::GraphicsScratchView::Draw(), yaze::editor::GraphicsScratchView::DrawColorIdSwap(), yaze::editor::GraphicsScratchView::ImportBin(), yaze::editor::GraphicsScratchView::Load(), yaze::editor::GraphicsScratchView::LibraryEdit::MemoryUsage(), Parse(), yaze::editor::GraphicsScratchView::RefreshPublishedBaselines(), yaze::editor::GraphicsScratchView::Selected(), and Serialize().