10 #include "GDCore/Project/InitialInstance.h"
11 #include "GDCore/String.h"
13 class InitialInstanceFunctor;
19 class SerializerElement;
82 std::size_t GetInstancesCount()
const;
121 void RemoveAllInstancesOnLayer(
const gd::String &layerName);
126 void MoveInstancesToLayer(
const gd::String &fromLayer,
132 void RemoveInitialInstancesOfObject(
const gd::String &objectName);
137 void RenameInstancesOfObject(
const gd::String &oldName,
143 std::size_t GetLayerInstancesCount(
const gd::String &layerName)
const;
149 bool SomeInstancesAreOnLayer(
const gd::String &layerName)
const;
154 bool HasInstancesOfObject(
const gd::String &objectName)
const;
160 IsInstancesCountOfObjectGreaterThan(
const gd::String &objectName,
161 const std::size_t minInstanceCount)
const;
187 void RemoveInstanceIf(
190 std::list<gd::InitialInstance> initialInstances;
223 layerRestricted(
false){};
232 layerName = layerName_;
233 layerRestricted =
true;
259 layerRestricted =
false;
266 size_t instancesCount;
269 bool layerRestricted;
Tool class picking returning the highest Z order of instances on a layer.
Definition: InitialInstancesContainer.h:216
void RestrictSearchToLayer(const gd::String &layerName_)
Restrict to instances on the specified layer.
Definition: InitialInstancesContainer.h:231
int GetHighestZOrder() const
After calling the instances container iterate method with this functor, this method will return the h...
Definition: InitialInstancesContainer.h:240
int GetLowestZOrder() const
After calling the instances container iterate method with this functor, this method will return the l...
Definition: InitialInstancesContainer.h:246
size_t GetInstancesCount() const
After calling the instances container iterate method with this functor, this method will return the n...
Definition: InitialInstancesContainer.h:252
Tool class to be used with gd::InitialInstancesContainer::IterateOverInstances.
Definition: InitialInstancesContainer.h:202
Represents an instance of an object to be created on a layout start up.
Definition: InitialInstance.h:26
Defines a container of gd::InitialInstances.
Definition: InitialInstancesContainer.h:38
InitialInstancesContainer * Clone() const
Return a pointer to a copy of the container. A such method is needed as the IDE may want to store cop...
Definition: InitialInstancesContainer.h:53
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