11 #include "GDCore/Project/Layer.h"
12 #include "GDCore/Project/MemoryTrackedRegistry.h"
13 #include "GDCore/String.h"
28 layers = other.layers;
36 bool HasLayerNamed(
const gd::String& name)
const;
52 Layer& GetLayer(std::size_t index);
58 const Layer& GetLayer(std::size_t index)
const;
63 std::size_t GetLayerPosition(
const gd::String& name)
const;
68 std::size_t GetLayersCount()
const;
74 void InsertNewLayer(
const gd::String& name, std::size_t position);
82 void InsertLayer(
const Layer& theLayer, std::size_t position);
92 void SwapLayers(std::size_t firstLayerIndex, std::size_t secondLayerIndex);
97 void MoveLayer(std::size_t oldIndex, std::size_t newIndex);
114 std::vector<gd::Layer> layers;
Represents a layer of a layout.
Definition: Layer.h:91
Contains the layers for a scene or a custom object.
Definition: LayersContainer.h:22
A non-copyable, non-movable member object that registers/unregisters its owner with MemoryTrackedRegi...
Definition: MemoryTrackedRegistry.h:238
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24