SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
layer.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2 #ifndef SLAPI_MODEL_LAYER_H_
3 #define SLAPI_MODEL_LAYER_H_
4 
5 #include <slapi/slapi.h>
6 #include <slapi/unicodestring.h>
7 #include <slapi/model/defs.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
26 SU_EXPORT SUEntityRef SULayerToEntity(SULayerRef layer);
27 
37 SU_EXPORT SULayerRef SULayerFromEntity(SUEntityRef entity);
38 
50 SU_RESULT SULayerCreate(SULayerRef* layer);
51 
62 SU_RESULT SULayerRelease(SULayerRef* layer);
63 
75 SU_RESULT SULayerGetName(SULayerRef layer, SUStringRef* name);
76 
85 SU_RESULT SULayerSetName(SULayerRef layer, const char* name);
86 
99 SU_RESULT SULayerGetMaterial(SULayerRef layer, SUMaterialRef* material);
100 
110 SU_RESULT SULayerGetVisibility(SULayerRef layer, bool* visible);
111 
120 SU_RESULT SULayerSetVisibility(SULayerRef layer, bool visible);
121 
122 #ifdef __cplusplus
123 } // extern "C"
124 #endif
125 
126 #endif // SLAPI_MODEL_LAYER_H_