LayOut C API
|
Go to the source code of this file.
Functions | |
LO_RESULT | LOEntityListCreate (LOEntityListRef *entity_list) |
Creates a new entity list object. More... | |
LO_RESULT | LOEntityListRelease (LOEntityListRef *entity_list) |
Releases an entity list object. *entity_list will be set to invalid by this function. More... | |
LO_RESULT | LOEntityListAddEntity (LOEntityListRef entity_list, LOEntityRef entity) |
Adds an entity to an entity list object. More... | |
LO_RESULT | LOEntityListGetNumberOfEntities (LOEntityListRef entity_list, size_t *num_entities) |
Gets the number of entities in an entity list object. More... | |
LO_RESULT | LOEntityListGetEntityAtIndex (LOEntityListRef entity_list, size_t index, LOEntityRef *entity) |
Gets the entity at the specified index in an entity list object. More... | |
LO_RESULT | LOEntityListMoveToLayer (LOEntityListRef entity_list, LOLayerRef layer, LOPageListRef pages) |
Moves a list of entities to the given layer. More... | |
LO_RESULT LOEntityListAddEntity | ( | LOEntityListRef | entity_list, |
LOEntityRef | entity | ||
) |
Adds an entity to an entity list object.
[in] | entity_list | The entity list object. |
[in] | entity | The entity object. |
LO_RESULT LOEntityListCreate | ( | LOEntityListRef * | entity_list | ) |
Creates a new entity list object.
[out] | entity_list | The entity list object. |
LO_RESULT LOEntityListGetEntityAtIndex | ( | LOEntityListRef | entity_list, |
size_t | index, | ||
LOEntityRef * | entity | ||
) |
Gets the entity at the specified index in an entity list object.
[in] | entity_list | The entity list object. |
[in] | index | The index of the entity to get. |
[out] | entity | The entity object. |
LO_RESULT LOEntityListGetNumberOfEntities | ( | LOEntityListRef | entity_list, |
size_t * | num_entities | ||
) |
Gets the number of entities in an entity list object.
[in] | entity_list | The entity list object. |
[out] | num_entities | The number of entities in this list. |
LO_RESULT LOEntityListMoveToLayer | ( | LOEntityListRef | entity_list, |
LOLayerRef | layer, | ||
LOPageListRef | pages | ||
) |
Moves a list of entities to the given layer.
If the layer is non-shared and any entity is on a shared layer, pages must be valid and populated with the pages to move the entities to. In all other cases, pages may be an invalid object. The entities must belong to the same document as the layer and pages.
[in] | entity_list | The entity list object. |
[in] | layer | The layer definition object. |
[in] | pages | The page list object. |
entity_list
does not refer to a valid objectentity_list
is emptyentity_list
contains the same entity reference more than oncelayer
does not refer to a valid objectpages
does not refer to a valid object and layer
is non-sharedpages
is empty and layer
is non-sharedpages
contains the same page reference more than once and layer
is non-sharedlayer
, and pages
are not all in the same documentlayer
is locked or if any entity is currently on a locked layer LO_RESULT LOEntityListRelease | ( | LOEntityListRef * | entity_list | ) |
Releases an entity list object. *entity_list will be set to invalid by this function.