LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
layer.h
Go to the documentation of this file.
1 // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2 // This file is intended for public distribution.
3 
4 #ifndef LAYOUT_MODEL_LAYER_H_
5 #define LAYOUT_MODEL_LAYER_H_
6 
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/model/defs.h>
9 
21 typedef enum {
25 
28 
34 typedef enum {
38 
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif // __cplusplus
45 
57 LO_RESULT LOLayerGetName(LOLayerRef layer_definition, SUStringRef* name);
58 
70 LO_RESULT LOLayerSetName(LOLayerRef layer_definition, const char* name);
71 
82 LO_RESULT LOLayerGetLocked(LOLayerRef layer_definition, bool* is_locked);
83 
100 LO_RESULT LOLayerSetLocked(LOLayerRef layer_definition, bool is_locked);
101 
112 LO_RESULT LOLayerGetShared(LOLayerRef layer_definition, bool* is_shared);
113 
133 LO_RESULT LOLayerSetShared(LOLayerRef layer_definition, LOPageRef page,
134  LOShareLayerAction action);
135 
155 LO_RESULT LOLayerSetNonShared(LOLayerRef layer_definition, LOPageRef page,
156  LOUnshareLayerAction action);
157 
177  LOLayerInstanceRef* layer_instance);
178 
189 LO_RESULT LOLayerGetLayerIndex(LOLayerRef layer_definition, size_t* index);
190 
202 LO_RESULT LOLayerGetDocument(LOLayerRef layer_definition,
203  LODocumentRef* document);
204 
205 #ifdef __cplusplus
206 } // end extern "C"
207 #endif // __cplusplus
208 
209 #endif // LAYOUT_MODEL_LAYER_H_