Lines Matching refs:NodeImpl

15 #include "NodeImpl.h"
30 void NodeImpl::RegisterEnums(NapiApi::Object exports)
36 napi_create_uint32(enu.GetEnv(), NodeImpl::NodeType::x, &v); \
46 NodeImpl::NodeImpl(NodeType type) : SceneResourceImpl(SceneResourceImpl::NODE), type_(type)
48 LOG_F("NodeImpl ++");
50 NodeImpl::~NodeImpl()
52 LOG_F("NodeImpl --");
55 void* NodeImpl::GetInstanceImpl(uint32_t id)
57 if (id == NodeImpl::ID) {
63 void NodeImpl::GetPropertyDescs(BASE_NS::vector<napi_property_descriptor>& props)
72 props.push_back(TROGetProperty<BASE_NS::string, NodeImpl, &NodeImpl::GetPath>("path"));
73 props.push_back(TROGetSetProperty<Object, NodeImpl, &NodeImpl::GetPosition, &NodeImpl::SetPosition>("position"));
74 props.push_back(TROGetSetProperty<Object, NodeImpl, &NodeImpl::GetRotation, &NodeImpl::SetRotation>("rotation"));
75 props.push_back(TROGetSetProperty<Object, NodeImpl, &NodeImpl::GetScale, &NodeImpl::SetScale>("scale"));
76 props.push_back(TROGetProperty<BASE_NS::string, NodeImpl, &NodeImpl::GetParent>("parent"));
77 props.push_back(TROGetSetProperty<bool, NodeImpl, &NodeImpl::GetVisible, &NodeImpl::SetVisible>("visible"));
78 props.push_back(TROGetSetProperty<bool, NodeImpl, &NodeImpl::GetChildContainer, &NodeImpl::SetVisible>("children"));
79 props.push_back(TROGetProperty<BASE_NS::string, NodeImpl, &NodeImpl::GetNodeType>("nodeType"));
80 props.push_back(TROGetProperty<BASE_NS::string, NodeImpl, &NodeImpl::GetLayerMask>("layerMask"));
83 props.push_back(MakeTROMethod<FunctionContext<>, NodeImpl, &NodeImpl::Dispose>("destroy"));
85 MakeTROMethod<FunctionContext<BASE_NS::string>, NodeImpl, &NodeImpl::GetNodeByPath>("getNodeByPath"));
88 props.push_back(MakeTROMethod<FunctionContext<uint32_t>, NodeImpl, &NodeImpl::GetLayerMaskEnabled>("getEnabled"));
90 MakeTROMethod<FunctionContext<uint32_t, bool>, NodeImpl, &NodeImpl::SetLayerMaskEnabled>("setEnabled"));
93 props.push_back(MakeTROMethod<FunctionContext<Object>, NodeImpl, &NodeImpl::AppendChild>("append"));
95 MakeTROMethod<FunctionContext<Object, Object>, NodeImpl, &NodeImpl::InsertChildAfter>("insertAfter"));
96 props.push_back(MakeTROMethod<FunctionContext<Object>, NodeImpl, &NodeImpl::RemoveChild>("remove"));
97 props.push_back(MakeTROMethod<FunctionContext<uint32_t>, NodeImpl, &NodeImpl::GetChild>("get"));
98 props.push_back(MakeTROMethod<FunctionContext<>, NodeImpl, &NodeImpl::ClearChildren>("clear"));
99 props.push_back(MakeTROMethod<FunctionContext<>, NodeImpl, &NodeImpl::GetCount>("count"));
101 napi_value NodeImpl::Dispose(NapiApi::FunctionContext<>& ctx)
113 napi_value NodeImpl::GetLayerMaskEnabled(NapiApi::FunctionContext<uint32_t>& ctx)
126 napi_value NodeImpl::SetLayerMaskEnabled(NapiApi::FunctionContext<uint32_t, bool>& ctx)
144 napi_value NodeImpl::GetNodeType(NapiApi::FunctionContext<>& ctx)
155 napi_value NodeImpl::GetLayerMask(NapiApi::FunctionContext<>& ctx)
163 napi_value NodeImpl::GetPath(NapiApi::FunctionContext<>& ctx)
180 napi_value NodeImpl::GetVisible(NapiApi::FunctionContext<>& ctx)
194 void NodeImpl::SetVisible(NapiApi::FunctionContext<bool>& ctx)
206 napi_value NodeImpl::GetPosition(NapiApi::FunctionContext<>& ctx)
218 void NodeImpl::SetPosition(NapiApi::FunctionContext<NapiApi::Object>& ctx)
231 napi_value NodeImpl::GetScale(NapiApi::FunctionContext<>& ctx)
243 void NodeImpl::SetScale(NapiApi::FunctionContext<NapiApi::Object>& ctx)
256 napi_value NodeImpl::GetRotation(NapiApi::FunctionContext<>& ctx)
268 void NodeImpl::SetRotation(NapiApi::FunctionContext<NapiApi::Object>& ctx)
281 napi_value NodeImpl::GetParent(NapiApi::FunctionContext<>& ctx)
315 napi_value NodeImpl::GetChildContainer(NapiApi::FunctionContext<>& ctx)
342 napi_value NodeImpl::GetChild(NapiApi::FunctionContext<uint32_t>& ctx)
388 napi_value NodeImpl::GetCount(NapiApi::FunctionContext<>& ctx)
409 napi_value NodeImpl::AppendChild(NapiApi::FunctionContext<NapiApi::Object>& ctx)
442 napi_value NodeImpl::InsertChildAfter(NapiApi::FunctionContext<NapiApi::Object, NapiApi::Object>& ctx)
501 void NodeImpl::ResetNativeObj(NapiApi::FunctionContext<>& ctx, NapiApi::Object& obj)
512 napi_value NodeImpl::RemoveChild(NapiApi::FunctionContext<NapiApi::Object>& ctx)
547 napi_value NodeImpl::ClearChildren(NapiApi::FunctionContext<>& ctx)
595 napi_value NodeImpl::GetNodeByPath(NapiApi::FunctionContext<BASE_NS::string>& ctx)