MCPcopy Create free account
hub / github.com/Tencent/tgfx / OnUpdateDensity

Function OnUpdateDensity

ohos/hello2d/src/main/cpp/napi_init.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static std::shared_ptr<drawers::AppHost> CreateAppHost();
18
19static napi_value OnUpdateDensity(napi_env env, napi_callback_info info) {
20 size_t argc = 1;
21 napi_value args[1] = {nullptr};
22 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr);
23 double value;
24 napi_get_value_double(env, args[0], &value);
25 screenDensity = static_cast<float>(value);
26 return nullptr;
27}
28
29static napi_value AddImageFromEncoded(napi_env env, napi_callback_info info) {
30 size_t argc = 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected