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

Go to the source code of this file.

Functions

LO_RESULT LOSelectionSetAddEntity (LOSelectionSetRef selection_set, LOEntityRef entity)
 Selects the entity, adding it to the current selection set. More...
 
LO_RESULT LOSelectionSetAddEntities (LOSelectionSetRef selection_set, LOEntityListRef entities)
 Selects the entities, adding them to the current selection set. More...
 
LO_RESULT LOSelectionSetSelectEntity (LOSelectionSetRef selection_set, LOEntityRef entity)
 Selects the entity, replacing the current selection set. More...
 
LO_RESULT LOSelectionSetSelectEntities (LOSelectionSetRef selection_set, LOEntityListRef entities)
 Selects the entities, replacing the current selection set. More...
 
LO_RESULT LOSelectionSetRemoveEntity (LOSelectionSetRef selection_set, LOEntityRef entity)
 Removes the entity from the current selection set. More...
 
LO_RESULT LOSelectionSetRemoveEntities (LOSelectionSetRef selection_set, LOEntityListRef entities)
 Removes the entities from the current selection set. More...
 
LO_RESULT LOSelectionSetClear (LOSelectionSetRef selection_set)
 Removes all entities from the selection set. More...
 
LO_RESULT LOSelectionSetGetNumberOfEntities (LOSelectionSetRef selection_set, size_t *num_entities)
 Gets the number of entities in the selection set. More...
 
LO_RESULT LOSelectionSetGetEntityAtIndex (LOSelectionSetRef selection_set, size_t index, LOEntityRef *entity)
 Gets the entity at the specified index in a selection set object. More...
 

Function Documentation

LO_RESULT LOSelectionSetAddEntities ( LOSelectionSetRef  selection_set,
LOEntityListRef  entities 
)

Selects the entities, adding them to the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entitiesThe entities to add to the current selection.
Returns
LO_RESULT LOSelectionSetAddEntity ( LOSelectionSetRef  selection_set,
LOEntityRef  entity 
)

Selects the entity, adding it to the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entityThe entity to add to the current selection.
Returns
LO_RESULT LOSelectionSetClear ( LOSelectionSetRef  selection_set)

Removes all entities from the selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
Returns
LO_RESULT LOSelectionSetGetEntityAtIndex ( LOSelectionSetRef  selection_set,
size_t  index,
LOEntityRef entity 
)

Gets the entity at the specified index in a selection set object.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]indexThe index of the entity to get.
[out]entityThe entity object.
Returns
LO_RESULT LOSelectionSetGetNumberOfEntities ( LOSelectionSetRef  selection_set,
size_t *  num_entities 
)

Gets the number of entities in the selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[out]num_entitiesThe number of entities in the selection set.
Returns
LO_RESULT LOSelectionSetRemoveEntities ( LOSelectionSetRef  selection_set,
LOEntityListRef  entities 
)

Removes the entities from the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entitiesThe entities to remove from the current selection.
Returns
LO_RESULT LOSelectionSetRemoveEntity ( LOSelectionSetRef  selection_set,
LOEntityRef  entity 
)

Removes the entity from the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entityThe entity to remove from the current selection.
Returns
LO_RESULT LOSelectionSetSelectEntities ( LOSelectionSetRef  selection_set,
LOEntityListRef  entities 
)

Selects the entities, replacing the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entitiesThe entities to set as the current selection.
Returns
LO_RESULT LOSelectionSetSelectEntity ( LOSelectionSetRef  selection_set,
LOEntityRef  entity 
)

Selects the entity, replacing the current selection set.

Since
LayOut 2023.1, API 8.1
Parameters
[in]selection_setThe selection set object.
[in]entityThe entity to set as the current selection.
Returns