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;
180 void RemoveInstanceIf(
183 std::list<gd::InitialInstance> initialInstances;
216 layerRestricted(
false){};
225 layerName = layerName_;
226 layerRestricted =
true;
252 layerRestricted =
false;
259 size_t instancesCount;
262 bool layerRestricted;
Tool class picking returning the highest Z order of instances on a layer.
Definition: InitialInstancesContainer.h:209
void RestrictSearchToLayer(const gd::String &layerName_)
Restrict to instances on the specified layer.
Definition: InitialInstancesContainer.h:224
int GetHighestZOrder() const
After calling the instances container iterate method with this functor, this method will return the h...
Definition: InitialInstancesContainer.h:233
int GetLowestZOrder() const
After calling the instances container iterate method with this functor, this method will return the l...
Definition: InitialInstancesContainer.h:239
size_t GetInstancesCount() const
After calling the instances container iterate method with this functor, this method will return the n...
Definition: InitialInstancesContainer.h:245
Tool class to be used with gd::InitialInstancesContainer::IterateOverInstances.
Definition: InitialInstancesContainer.h:195
Represents an instance of an object to be created on a layout start up.
Definition: InitialInstance.h:25
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:31
Definition: CommonTools.h:24