SketchUp C API
|
References a Tag Folder object. More...
#include <SketchUpAPI/model/layer_folder.h>
Related Functions | |
(Note that these are not member functions.) | |
SUEntityRef | SULayerFolderToEntity (SULayerFolderRef layer_folder) |
Converts from an SULayerFolderRef to an SUEntityRef. This is essentially an upcast operation. More... | |
SULayerFolderRef | SULayerFolderFromEntity (SUEntityRef entity) |
Converts from an SUEntityRef to an SULayerFolderRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SULayerFolderRef. More... | |
enum SUResult | SULayerFolderCreate (SULayerFolderRef *layer_folder, const char *name) |
Creates a new layer folder object with the given name. More... | |
enum SUResult | SULayerFolderRelease (SULayerFolderRef *layer_folder) |
Deallocates a layer folder object. More... | |
enum SUResult | SULayerFolderGetName (SULayerFolderRef layer_folder, SUStringRef *name) |
Retrieves the name of a layer folder object. More... | |
enum SUResult | SULayerFolderSetName (SULayerFolderRef layer_folder, const char *name) |
Assigns the name of a layer folder object. More... | |
enum SUResult | SULayerFolderGetVisibility (SULayerFolderRef layer_folder, bool *visible) |
Retrieves the boolean flag indicating whether a layer folder object is visible. More... | |
enum SUResult | SULayerFolderSetVisibility (SULayerFolderRef layer_folder, bool visible) |
Sets the boolean flag indicating whether a layer folder object is visible. More... | |
enum SUResult | SULayerGroupGetVisibleOnNewScenes (SULayerFolderRef layer_folder, bool *visible) |
Retrieves the boolean flag indicating whether a layer folder object is visible by default on new scenes. More... | |
enum SUResult | SULayerGroupSetVisibleOnNewScenes (SULayerFolderRef layer_folder, bool visible) |
Sets the boolean flag indicating whether a layer folder object is visible by default on new scenes. More... | |
enum SUResult | SULayerFolderAddLayer (SULayerFolderRef layer_folder, SULayerRef layer) |
Adds a layer to the given layer folder. More... | |
enum SUResult | SULayerFolderRemoveLayer (SULayerFolderRef layer_folder, SULayerRef layer) |
Removes a layer from the given layer folder. More... | |
enum SUResult | SULayerFolderGetNumLayers (SULayerFolderRef layer_folder, size_t *count) |
Gets the number of layers that layer_folder contains. More... | |
enum SUResult | SULayerFolderGetLayers (SULayerFolderRef layer_folder, size_t len, SULayerRef *layers, size_t *count) |
Gets the layers that are in the layer_folder. More... | |
enum SUResult | SULayerFolderAddLayerFolder (SULayerFolderRef layer_folder, SULayerFolderRef add_folder) |
Adds a SULayerFolderRef object to the given layer folder. More... | |
enum SUResult | SULayerFolderGetNumLayerFolders (SULayerFolderRef layer_folder, size_t *count) |
Gets the number of SULayerFolderRef objects that are direct children of the given layer folder object. More... | |
enum SUResult | SULayerFolderGetLayerFolders (SULayerFolderRef layer_folder, size_t len, SULayerFolderRef *layer_folders, size_t *count) |
Gets the SULayerFolderRef objects that are direct children of the given layer folder object. More... | |
enum SUResult | SULayerFolderGetParentLayerFolder (SULayerFolderRef layer_folder, SULayerFolderRef *parent) |
Gets the SULayerFolderRef object that contains the given layer folder. More... | |
References a Tag Folder object.
|
related |
Adds a layer to the given layer folder.
[in] | layer_folder | The layer folder object. |
[in] | layer | The layer to add. |
layer_folder
or layer
is not a valid object.layer
can not be added to, or is already a member of, layer_folder
.
|
related |
Adds a SULayerFolderRef object to the given layer folder.
[in] | layer_folder | The parent layer folder. |
[in] | add_folder | The layer folder to add. |
layer_folder
or add_folder
is an invalid objectlayer_folder
is not part of the model or add_folder
fails to be added or is already contained within layer_folder
.
|
related |
Creates a new layer folder object with the given name.
Layer Folders associated with a SketchUp model must not be explicitly deallocated. Layer folders that are not associated with a SketchUp model must be deallocated with SULayerFolderRelease().
[out] | layer_folder | The layer folder object created. |
[in] | name | The desired layer folder name. Assumed to be UTF-8 encoded. |
layer_folder
is NULLname
is NULLname
is an empty string
|
related |
Converts from an SUEntityRef to an SULayerFolderRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SULayerFolderRef.
[in] | entity | The given entity reference. |
|
related |
Gets the SULayerFolderRef objects that are direct children of the given layer folder object.
[in] | layer_folder | The layer folder object. |
[in] | len | The number of elements in layer_folders . |
[out] | layer_folders | An array of layer folder objects. |
[out] | count | The number of elements written into layer_folders . |
model
is an invalid objectlayer_folders
or count
is NULL
|
related |
Gets the layers that are in the layer_folder.
[in] | layer_folder | The layer folder object. |
[in] | len | The number of elements in the layers array. |
[out] | layers | The layers that are in the layer folder. |
[out] | count | The number of layers read into the layers array. |
layer_folder
is not a valid object.layers
or count
is NULL.
|
related |
Retrieves the name of a layer folder object.
[in] | layer_folder | The layer folder object. |
[out] | name | The name retrieved. |
layer_folder
is not a valid objectname
is NULLname
does not point to a valid SUStringRef object
|
related |
Gets the number of SULayerFolderRef objects that are direct children of the given layer folder object.
[in] | layer_folder | The layer folder object. |
[out] | count | The number of layer folder objects that are direct children. |
model
is an invalid objectcount
is NULL
|
related |
Gets the number of layers that layer_folder contains.
[in] | layer_folder | The layer folder object. |
[out] | count | The number of layers. |
layer_folder
is not a valid object.count
is NULL
|
related |
Gets the SULayerFolderRef object that contains the given layer folder.
[in] | layer_folder | The layer folder object. |
[out] | parent | The retrieved parent layer folder object. |
layer_folder
is not a valid objectlayer_folder
is NULLlayer_folder
is not contained within a layer folder
|
related |
Retrieves the boolean flag indicating whether a layer folder object is visible.
[in] | layer_folder | The layer folder object. |
[out] | visible | The visibility flag retrieved. |
layer_folder
is not a valid objectvisible
is NULL
|
related |
Deallocates a layer folder object.
The layer folder object to be deallocated must not be associated with a SketchUp model.
[in] | layer_folder | The layer folder object. |
layer_folder
points to an invalid objectlayer_folder
is NULLlayer_folder
is contained within a model.
|
related |
Removes a layer from the given layer folder.
[in] | layer_folder | The layer folder object. |
[in] | layer | The layer to remove. |
layer_folder
or layer
is not a valid object.layer
is not in layer_folder
.
|
related |
Assigns the name of a layer folder object.
[in] | layer_folder | The layer folder object. |
[in] | name | The new name of the layer folder object. Assumed to be UTF-8 encoded. |
layer_folder
is not a valid objectname
is NULLname
is an empty string
|
related |
Sets the boolean flag indicating whether a layer folder object is visible.
[in] | layer_folder | The layer folder object. |
[in] | visible | The visibility flag to set. |
layer_folder
is not a valid object.
|
related |
Converts from an SULayerFolderRef to an SUEntityRef. This is essentially an upcast operation.
[in] | layer_folder | The given layer folder reference. |
layer_folder
is a valid layer folder
|
related |
Retrieves the boolean flag indicating whether a layer folder object is visible by default on new scenes.
[in] | layer_folder | The layer folder object. |
[out] | visible | The visibility flag retrieved. |
layer_folder
is not a valid objectvisible
is NULL
|
related |
Sets the boolean flag indicating whether a layer folder object is visible by default on new scenes.
[in] | layer_folder | The layer folder object. |
[in] | visible | The visibility flag to set. |
layer_folder
is not a valid object.