|
| Layout (const Layout &) |
|
Layout & | operator= (const Layout &rhs) |
|
Layout * | Clone () const |
| Return a pointer to a copy of the layout.
|
|
void | UpdateBehaviorsSharedData (gd::Project &project) |
|
std::vector< gd::String > | GetAllBehaviorSharedDataNames () const |
| Get the names of all shared data stored for behaviors.
|
|
bool | HasBehaviorSharedData (const gd::String &behaviorName) |
| Check if shared data are stored for a behavior.
|
|
const gd::BehaviorsSharedData & | GetBehaviorSharedData (const gd::String &behaviorName) const |
| Get the shared data stored for a behavior.
|
|
gd::BehaviorsSharedData & | GetBehaviorSharedData (const gd::String &behaviorName) |
| Get the shared data stored for a behavior.
|
|
const std::map< gd::String, std::unique_ptr< gd::BehaviorsSharedData > > & | GetAllBehaviorSharedData () const |
| Get a map of all shared data stored for behaviors.
|
|
const gd::EditorSettings & | GetAssociatedEditorSettings () const |
|
gd::EditorSettings & | GetAssociatedEditorSettings () |
|
BaseProfiler * | GetProfiler () const |
|
void | SetProfiler (BaseProfiler *profiler_) |
|
|
Members functions related to common properties of layouts
|
void | SetName (const gd::String &name_) |
|
const gd::String & | GetName () const |
|
const gd::String & | GetMangledName () const |
|
void | SetBackgroundColor (unsigned int r, unsigned int g, unsigned int b) |
|
unsigned int | GetBackgroundColorRed () const |
|
unsigned int | GetBackgroundColorGreen () const |
|
unsigned int | GetBackgroundColorBlue () const |
|
const gd::String & | GetWindowDefaultTitle () const |
|
void | SetWindowDefaultTitle (const gd::String &title_) |
|
|
Members functions related to initial instances of objects created at the layout start up
|
const gd::InitialInstancesContainer & | GetInitialInstances () const |
|
gd::InitialInstancesContainer & | GetInitialInstances () |
|
|
Members functions related to events management.
|
const gd::EventsList & | GetEvents () const |
|
gd::EventsList & | GetEvents () |
|
|
Members functions related to layout variables management.
|
const gd::VariablesContainer & | GetVariables () const |
|
gd::VariablesContainer & | GetVariables () |
|
|
Members functions related to layout layers management. TODO: This could be moved to a separate class
|
bool | HasLayerNamed (const gd::String &name) const |
| Return true if the layer called "name" exists.
|
|
Layer & | GetLayer (const gd::String &name) |
| Return a reference to the layer called "name".
|
|
const Layer & | GetLayer (const gd::String &name) const |
| Return a reference to the layer called "name".
|
|
Layer & | GetLayer (std::size_t index) |
| Return a reference to the layer at position "index" in the layers list.
|
|
const Layer & | GetLayer (std::size_t index) const |
| Return a reference to the layer at position "index" in the layers list.
|
|
std::size_t | GetLayerPosition (const gd::String &name) const |
| Return the position of the layer called "name" in the layers list.
|
|
std::size_t | GetLayersCount () const |
|
void | InsertNewLayer (const gd::String &name, std::size_t position) |
|
void | InsertLayer (const Layer &theLayer, std::size_t position) |
|
void | RemoveLayer (const gd::String &name) |
|
void | SwapLayers (std::size_t firstLayerIndex, std::size_t secondLayerIndex) |
|
void | MoveLayer (std::size_t oldIndex, std::size_t newIndex) |
|
void | SerializeLayersTo (SerializerElement &element) const |
| Serialize the layers.
|
|
void | UnserializeLayersFrom (const SerializerElement &element) |
| Unserialize the layers.
|
|
|
void | DisableInputWhenFocusIsLost (bool disable=true) |
|
bool | IsInputDisabledWhenFocusIsLost () |
|
void | SetStandardSortMethod (bool enable=true) |
|
bool | StandardSortMethod () const |
|
void | SetStopSoundsOnStartup (bool enable=true) |
|
bool | StopSoundsOnStartup () const |
|
|
Members functions related to saving and loading the object.
|
void | SerializeTo (SerializerElement &element) const |
| Serialize the layout.
|
|
void | UnserializeFrom (gd::Project &project, const SerializerElement &element) |
| Unserialize the layout.
|
|
| ObjectsContainer () |
| Default constructor creating a container without any objects.
|
|
std::vector< const ObjectFolderOrObject * > | GetAllObjectFolderOrObjects () const |
|
gd::ObjectFolderOrObject & | GetRootFolder () |
|
void | AddMissingObjectsInRootFolder () |
|
bool | HasObjectNamed (const gd::String &name) const |
| Return true if object called name exists.
|
|
Object & | GetObject (const gd::String &name) |
| Return a reference to the object called name.
|
|
const gd::Object & | GetObject (const gd::String &name) const |
| Return a reference to the object called name.
|
|
Object & | GetObject (std::size_t index) |
| Return a reference to the object at position index in the objects list.
|
|
const gd::Object & | GetObject (std::size_t index) const |
| Return a reference to the object at position index in the objects list.
|
|
std::size_t | GetObjectPosition (const gd::String &name) const |
| Return the position of the object called name in the objects list. More...
|
|
std::size_t | GetObjectsCount () const |
| Return the number of object.
|
|
gd::Object & | InsertNewObject (const gd::Project &project, const gd::String &objectType, const gd::String &name, std::size_t position) |
| Add a new empty object of type objectType called name at the specified position in the list.
More...
|
|
gd::Object & | InsertNewObjectInFolder (const gd::Project &project, const gd::String &objectType, const gd::String &name, gd::ObjectFolderOrObject &objectFolderOrObject, std::size_t position) |
| Add a new empty object of type objectType called name in the given folder at the specified position.
More...
|
|
gd::Object & | InsertObject (const gd::Object &object, std::size_t position) |
| Add a new object to the list. More...
|
|
void | RemoveObject (const gd::String &name) |
| Delete an object. More...
|
|
void | MoveObject (std::size_t oldIndex, std::size_t newIndex) |
|
void | MoveObjectFolderOrObjectToAnotherContainerInFolder (gd::ObjectFolderOrObject &objectFolderOrObject, gd::ObjectsContainer &newContainer, gd::ObjectFolderOrObject &newParentFolder, std::size_t newPosition) |
|
std::vector< std::unique_ptr< gd::Object > > & | GetObjects () |
|
const std::vector< std::unique_ptr< gd::Object > > & | GetObjects () const |
|
void | SerializeObjectsTo (SerializerElement &element) const |
| Serialize the objects container.
|
|
void | UnserializeObjectsFrom (gd::Project &project, const SerializerElement &element) |
| Unserialize the objects container.
|
|
void | SerializeFoldersTo (SerializerElement &element) const |
| Serialize folder structure.
|
|
void | UnserializeFoldersFrom (gd::Project &project, const SerializerElement &element) |
| Unserialize folder structure.
|
|
ObjectGroupsContainer & | GetObjectGroups () |
| Return a reference to the project's objects groups.
|
|
const ObjectGroupsContainer & | GetObjectGroups () const |
| Return a const reference to the project's objects groups.
|
|
Represent a layout ( also called a scene ) of a project.