2025-12-24 12:42:27 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include <Helpers/NetworkingObjects/NetObjOrderedList.hpp>
|
2025-12-25 17:18:28 +03:00
|
|
|
#include <include/core/SkCanvas.h>
|
|
|
|
|
#include "../../DrawData.hpp"
|
2025-12-26 19:52:36 +03:00
|
|
|
#include "../../CanvasComponents/CanvasComponentContainer.hpp"
|
2025-12-24 12:42:27 +03:00
|
|
|
|
|
|
|
|
class DrawingProgramLayerListItem;
|
2025-12-26 10:10:19 +03:00
|
|
|
class DrawingProgramLayerManager;
|
2025-12-24 12:42:27 +03:00
|
|
|
|
|
|
|
|
class DrawingProgramLayerFolder {
|
|
|
|
|
public:
|
2025-12-26 19:52:36 +03:00
|
|
|
void draw(SkCanvas* canvas, const DrawData& drawData) const;
|
2025-12-30 21:18:59 +03:00
|
|
|
void set_component_list_callbacks(DrawingProgramLayerManager& layerMan);
|
2025-12-30 19:46:08 +03:00
|
|
|
void get_flattened_component_list(std::vector<CanvasComponentContainer::ObjInfo*>& objList) const;
|
2025-12-30 21:18:59 +03:00
|
|
|
void set_to_erase();
|
2025-12-31 11:59:53 +03:00
|
|
|
NetworkingObjects::NetObjWeakPtr<DrawingProgramLayerListItem> get_initial_editing_layer() const;
|
2025-12-31 16:30:56 +03:00
|
|
|
void scale_up(const WorldScalar& scaleUpAmount);
|
2025-12-25 17:18:28 +03:00
|
|
|
|
2025-12-24 12:42:27 +03:00
|
|
|
NetworkingObjects::NetObjOwnerPtr<NetworkingObjects::NetObjOrderedList<DrawingProgramLayerListItem>> folderList;
|
|
|
|
|
bool isFolderOpen = false;
|
2026-01-01 22:46:02 +03:00
|
|
|
|
|
|
|
|
void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version, DrawingProgramLayerManager& layerMan);
|
|
|
|
|
void save_file(cereal::PortableBinaryOutputArchive& a) const;
|
2026-01-01 23:28:26 +03:00
|
|
|
|
|
|
|
|
void get_used_resources(std::unordered_set<NetworkingObjects::NetObjID>& resourceSet) const;
|
2026-04-03 14:18:04 +03:00
|
|
|
void erase_invalid_components();
|
2025-12-24 12:42:27 +03:00
|
|
|
};
|