LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
layerinstance.h File Reference
#include <LayOutAPI/common.h>
#include <LayOutAPI/model/defs.h>

Go to the source code of this file.

Functions

LO_RESULT LOLayerInstanceGetNumberOfEntities (LOLayerInstanceRef layer_instance, size_t *number_of_entities)
 Gets the number of entities associated with a layer instance. More...
 
LO_RESULT LOLayerInstanceGetEntityAtIndex (LOLayerInstanceRef layer_instance, size_t index, LOEntityRef *entity)
 Gets the entity at the given index of a layer instance's draw order. More...
 
LO_RESULT LOLayerInstanceGetIndexOfEntity (LOLayerInstanceRef layer_instance, LOEntityRef entity, size_t *index)
 Gets the index of the given entity on the layer instance. More...
 
LO_RESULT LOLayerInstanceGetEntities (LOLayerInstanceRef layer_instance, LOEntityListRef entity_list)
 Populates a LOEntityListRef with all the entities associated with a layer instance, ordered by their draw order. More...
 
LO_RESULT LOLayerInstanceReorderEntity (LOLayerInstanceRef layer_instance, LOEntityRef entity, size_t index)
 Moves the entity to the specified index within a layer instance's draw order. The entity must already belong to the layer instance that is passed in. More...
 
LO_RESULT LOLayerInstanceGetLayerDefinition (LOLayerInstanceRef layer_instance, LOLayerRef *layer_definition)
 Gets the layer definition that a layer instance is associated with. More...
 

Function Documentation

LO_RESULT LOLayerInstanceGetEntities ( LOLayerInstanceRef  layer_instance,
LOEntityListRef  entity_list 
)

Populates a LOEntityListRef with all the entities associated with a layer instance, ordered by their draw order.

Parameters
[in]layer_instanceThe layer instance object.
[out]entity_listThe entity list to populate.
Returns
LO_RESULT LOLayerInstanceGetEntityAtIndex ( LOLayerInstanceRef  layer_instance,
size_t  index,
LOEntityRef entity 
)

Gets the entity at the given index of a layer instance's draw order.

Parameters
[in]layer_instanceThe layer instance object.
[in]indexThe index of the entity to get.
[out]entityThe entity object.
Returns
LO_RESULT LOLayerInstanceGetIndexOfEntity ( LOLayerInstanceRef  layer_instance,
LOEntityRef  entity,
size_t *  index 
)

Gets the index of the given entity on the layer instance.

Since
LayOut 2018, API 3.0
Parameters
[in]layer_instanceThe layer instance object.
[in]entityThe entity object.
[out]indexThe index of the entity.
Returns
LO_RESULT LOLayerInstanceGetLayerDefinition ( LOLayerInstanceRef  layer_instance,
LOLayerRef layer_definition 
)

Gets the layer definition that a layer instance is associated with.

Parameters
[in]layer_instanceThe layer instance object.
[out]layer_definitionThe layer definition object.
Returns
LO_RESULT LOLayerInstanceGetNumberOfEntities ( LOLayerInstanceRef  layer_instance,
size_t *  number_of_entities 
)

Gets the number of entities associated with a layer instance.

Parameters
[in]layer_instanceThe layer instance object.
[out]number_of_entitiesThe number of entities associated with the layer instance.
Returns
LO_RESULT LOLayerInstanceReorderEntity ( LOLayerInstanceRef  layer_instance,
LOEntityRef  entity,
size_t  index 
)

Moves the entity to the specified index within a layer instance's draw order. The entity must already belong to the layer instance that is passed in.

Parameters
[in]layer_instanceThe layer instance object.
[in]entityThe entity object.
[in]indexThe index to move the entity to.
Returns