Home
last modified time | relevance | path

Searched refs:jsWeight (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_menu_item.cpp246 auto jsWeight = obj->GetProperty("weight"); in ContentFont() local
247 if (!jsWeight->IsNull()) { in ContentFont()
248 if (jsWeight->IsNumber()) { in ContentFont()
249 weight = std::to_string(jsWeight->ToNumber<int32_t>()); in ContentFont()
251 ParseJsString(jsWeight, weight); in ContentFont()
308 auto jsWeight = obj->GetProperty("weight"); in LabelFont() local
309 if (!jsWeight->IsNull()) { in LabelFont()
310 if (jsWeight->IsNumber()) { in LabelFont()
311 weight = std::to_string(jsWeight->ToNumber<int32_t>()); in LabelFont()
313 ParseJsString(jsWeight, weight); in LabelFont()
H A Djs_menu.cpp91 auto jsWeight = obj->GetProperty("weight"); in Font() local
92 if (!jsWeight->IsNull()) { in Font()
93 if (jsWeight->IsNumber()) { in Font()
94 weight = std::to_string(jsWeight->ToNumber<int32_t>()); in Font()
96 ParseJsString(jsWeight, weight); in Font()
H A Djs_indexer.cpp419 auto jsWeight = obj->GetProperty("weight"); in SetPopupItemFont() local
420 if (!jsWeight->IsNull()) { in SetPopupItemFont()
421 if (jsWeight->IsNumber()) { in SetPopupItemFont()
422 weight = std::to_string(jsWeight->ToNumber<int32_t>()); in SetPopupItemFont()
424 ParseJsString(jsWeight, weight); in SetPopupItemFont()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_text_input_bridge.cpp750 Local<JSValueRef> jsWeight = runtimeCallInfo->GetCallArgRef(2); in SetPlaceholderFont() local
770 if (!jsWeight->IsNull()) { in SetPlaceholderFont()
771 if (jsWeight->IsString(vm)) { in SetPlaceholderFont()
772 weight = jsWeight->ToString(vm)->ToString(vm); in SetPlaceholderFont()
774 if (jsWeight->IsNumber()) { in SetPlaceholderFont()
775 weight = std::to_string(jsWeight->Int32Value(vm)); in SetPlaceholderFont()