Home
last modified time | relevance | path

Searched refs:weightArg (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_alphabet_indexer_bridge.cpp55 if (!weightArg->IsNull() && !weightArg->IsUndefined()) { in SetPopupItemFont()
56 if (weightArg->IsNumber()) { in SetPopupItemFont()
90 …if ((fontSizeArg->IsNull() || fontSizeArg->IsUndefined()) && (weightArg->IsNull() || weightArg->Is… in SetSelectedFont()
103 …if (!weightArg->IsNull() && !weightArg->IsUndefined() && (weightArg->IsString(vm) || weightArg->Is… in SetSelectedFont()
104 weight = weightArg->ToString(vm)->ToString(vm); in SetSelectedFont()
140 …if ((fontSizeArg->IsNull() || fontSizeArg->IsUndefined()) && (weightArg->IsNull() || weightArg->Is… in SetPopupFont()
153 …if (!weightArg->IsNull() && !weightArg->IsUndefined() && (weightArg->IsString(vm) || weightArg->Is… in SetPopupFont()
154 weight = weightArg->ToString(vm)->ToString(vm); in SetPopupFont()
190 …if ((fontSizeArg->IsNull() || fontSizeArg->IsUndefined()) && (weightArg->IsNull() || weightArg->Is… in SetFont()
203 …if (!weightArg->IsNull() && !weightArg->IsUndefined() && (weightArg->IsString(vm) || weightArg->Is… in SetFont()
[all …]
H A Darkts_native_menu_item_bridge.cpp109 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: label font weight in SetLabelFont() local
113 …if (sizeArg->IsUndefined() && weightArg->IsUndefined() && familyArg->IsUndefined() && styleArg->Is… in SetLabelFont()
124 if (weightArg->IsNumber()) { in SetLabelFont()
125 weight = std::to_string(weightArg->Int32Value(vm)); in SetLabelFont()
127 if (!ArkTSUtils::ParseJsString(vm, weightArg, weight) || weight.empty()) { in SetLabelFont()
165 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: index of font weight in SetContentFont() local
169 …if (sizeArg->IsUndefined() && weightArg->IsUndefined() && familyArg->IsUndefined() && styleArg->Is… in SetContentFont()
180 if (weightArg->IsNumber()) { in SetContentFont()
181 weight = std::to_string(weightArg->Int32Value(vm)); in SetContentFont()
183 if (!ArkTSUtils::ParseJsString(vm, weightArg, weight) || weight.empty()) { in SetContentFont()
H A Darkts_native_marquee_bridge.cpp91 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(1); in SetFontWeight() local
94 if (!weightArg->IsNull()) { in SetFontWeight()
95 if (weightArg->IsNumber()) { in SetFontWeight()
96 weight = std::to_string(weightArg->Int32Value(vm)); in SetFontWeight()
97 } else if (weightArg->IsString(vm)) { in SetFontWeight()
98 weight = weightArg->ToString(vm)->ToString(vm); in SetFontWeight()
H A Darkts_native_menu_bridge.cpp145 … Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: index of font weight value in SetFont() local
149 …if (sizeArg->IsUndefined() && weightArg->IsUndefined() && familyArg->IsUndefined() && styleArg->Is… in SetFont()
159 if (weightArg->IsNumber()) { in SetFont()
160 weight = std::to_string(weightArg->Int32Value(vm)); in SetFont()
162 if (!ArkTSUtils::ParseJsString(vm, weightArg, weight) || weight.empty()) { in SetFont()
H A Darkts_native_text_bridge.cpp72 if (!weightArg->IsNull()) { in SetFontWeight()
73 if (weightArg->IsNumber()) { in SetFontWeight()
74 weight = std::to_string(weightArg->Int32Value(vm)); in SetFontWeight()
75 variableFontWeight = weightArg->Int32Value(vm); in SetFontWeight()
76 } else if (weightArg->IsString(vm)) { in SetFontWeight()
77 weight = weightArg->ToString(vm)->ToString(vm); in SetFontWeight()
866 if (!weightArg->IsNull()) { in SetFont()
867 if (weightArg->IsNumber()) { in SetFont()
869 variableFontWeight = weightArg->Int32Value(vm); in SetFont()
870 } else if (weightArg->IsString(vm)) { in SetFont()
[all …]
H A Darkts_native_progress_bridge.cpp401 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(index); in ParseCapsuleFontWeight() local
407 if (!weightArg->IsNull()) { in ParseCapsuleFontWeight()
408 if (weightArg->IsNumber()) { in ParseCapsuleFontWeight()
409 weight = std::to_string(weightArg->Int32Value(vm)); in ParseCapsuleFontWeight()
410 } else if (weightArg->IsString(vm)) { in ParseCapsuleFontWeight()
411 weight = weightArg->ToString(vm)->ToString(vm); in ParseCapsuleFontWeight()
H A Darkts_native_span_bridge.cpp435 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(NUM_2); in SetFont() local
451 if (!weightArg->IsNull()) { in SetFont()
452 if (weightArg->IsNumber()) { in SetFont()
453 weight = std::to_string(weightArg->Int32Value(vm)); in SetFont()
454 } else if (weightArg->IsString(vm)) { in SetFont()
455 weight = weightArg->ToString(vm)->ToString(vm); in SetFont()