32 #include "SUAPI-CppWrapper/model/Entity.hpp" 34 #include <SketchUpAPI/model/layer.h> 42 static SULayerRef create_layer();
48 static SULayerRef copy_reference(
const Layer& other);
73 SULayerRef
ref()
const;
74 operator SULayerRef()
const;
75 operator SULayerRef*();
96 void name(
const std::string&
string);
109 size_t operator()(
const CW::Layer& k)
const 111 static const size_t shift = (size_t)log2(1 +
sizeof(
CW::Layer));
112 return (
size_t)(k.
m_entity.ptr) >> shift;
bool attached() const
Returns true if the entity is attached to another object.
SUEntityRef m_entity
The C SUEntityRef that this class wraps.
Layer & operator=(const Layer &other)