Lines Matching refs:ImageJS
16 #include "ImageJS.h"
23 void ImageJS::Init(napi_env env, napi_value exports)
29 props.emplace_back(GetProperty<uint32_t, ImageJS, &ImageJS::GetWidth>("width"));
30 props.emplace_back(GetProperty<uint32_t, ImageJS, &ImageJS::GetHeight>("height"));
36 env, "Image", NAPI_AUTO_LENGTH, BaseObject::ctor<ImageJS>(), nullptr, props.size(), props.data(), &func);
43 void ImageJS::DisposeNative()
47 LOG_F("ImageJS::DisposeNative");
72 void* ImageJS::GetInstanceImpl(uint32_t id)
74 if (id == ImageJS::ID) {
79 void ImageJS::Finalize(napi_env env)
82 BaseObject<ImageJS>::Finalize(env);
85 ImageJS::ImageJS(napi_env e, napi_callback_info i)
86 : BaseObject<ImageJS>(e, i), SceneResourceImpl(SceneResourceType::IMAGE)
132 ImageJS::~ImageJS()
137 napi_value ImageJS::GetWidth(NapiApi::FunctionContext<>& ctx)
151 napi_value ImageJS::GetHeight(NapiApi::FunctionContext<>& ctx)