10 #include "GDCore/Project/InitialInstance.h"
11 #include "GDCore/String.h"
13 class InitialInstanceFunctor;
19 class SerializerElement;
82 std::size_t GetInstancesCount()
const;
94 void IterateOverInstances(
128 void RemoveAllInstancesOnLayer(
const gd::String &layerName);
133 void MoveInstancesToLayer(
const gd::String &fromLayer,
139 void RemoveInitialInstancesOfObject(
const gd::String &objectName);
144 void RenameInstancesOfObject(
const gd::String &oldName,
150 std::size_t GetLayerInstancesCount(
const gd::String &layerName)
const;
156 bool SomeInstancesAreOnLayer(
const gd::String &layerName)
const;
161 bool HasInstancesOfObject(
const gd::String &objectName)
const;
167 IsInstancesCountOfObjectGreaterThan(
const gd::String &objectName,
168 const std::size_t minInstanceCount)
const;
194 void RemoveInstanceIf(
197 std::list<gd::InitialInstance> initialInstances;
230 layerRestricted(
false){};
239 layerName = layerName_;
240 layerRestricted =
true;
266 layerRestricted =
false;
273 size_t instancesCount;
276 bool layerRestricted;
Tool class picking returning the highest Z order of instances on a layer.
Definition: InitialInstancesContainer.h:223
void RestrictSearchToLayer(const gd::String &layerName_)
Restrict to instances on the specified layer.
Definition: InitialInstancesContainer.h:238
int GetHighestZOrder() const
After calling the instances container iterate method with this functor, this method will return the h...
Definition: InitialInstancesContainer.h:247
int GetLowestZOrder() const
After calling the instances container iterate method with this functor, this method will return the l...
Definition: InitialInstancesContainer.h:253
size_t GetInstancesCount() const
After calling the instances container iterate method with this functor, this method will return the n...
Definition: InitialInstancesContainer.h:259
Tool class to be used with gd::InitialInstancesContainer::IterateOverInstances.
Definition: InitialInstancesContainer.h:209
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