Home
last modified time | relevance | path

Searched refs:widthValue (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/relative_container/
H A Drender_relative_container.cpp266 double widthValue = 0.0; in CalcLayoutParam() local
271 widthValue = middleValue - flexItem->GetAlignValue(checkAlign); in CalcLayoutParam()
272 itemMaxWidth = 2 * (widthValue > 0.0 ? widthValue : 0.0); in CalcLayoutParam()
273 itemMinWidth = 2 * (widthValue > 0.0 ? widthValue : 0.0); in CalcLayoutParam()
276 widthValue = flexItem->GetAlignValue(checkAlign) - middleValue; in CalcLayoutParam()
277 itemMaxWidth = 2 * (widthValue > 0.0 ? widthValue : 0.0); in CalcLayoutParam()
278 itemMinWidth = 2 * (widthValue > 0.0 ? widthValue : 0.0); in CalcLayoutParam()
284 widthValue = flexItem->GetAlignValue(checkAlign) - leftValue; in CalcLayoutParam()
285 itemMaxWidth = widthValue > 0.0 ? widthValue : 0.0; in CalcLayoutParam()
286 itemMinWidth = widthValue > 0.0 ? widthValue : 0.0; in CalcLayoutParam()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/
H A Dstylemgr_tdd_test.cpp169 JSValue widthValue = jerry_create_number(values[i]); in PrepareStyleSheetWithKeyValues() local
417 constexpr int32_t widthValue = 200; in ACELiteStyleManagerInlineStyle004() local
452 EXPECT_EQ(sampleSelectorItem->GetNumValue(), widthValue); in ACELiteStyleManagerInlineStyle004()
480 constexpr int32_t widthValue = 200; in ACELiteStyleManagerInlineStyle005() local
551 constexpr int32_t widthValue = 200; in ACELiteStyleManagerIDSelector002() local
624 constexpr int32_t widthValue = 200; in ACELiteStyleManagerIDSelector004() local
688 constexpr int32_t widthValue = 500; in ACELiteStyleManagerIDSelector005() local
809 constexpr int32_t widthValue = 200; in ACELiteStyleManagerClassSelector003() local
881 constexpr uint16_t widthValue = 200; in ACELiteStyleManagerCSSPesudo001() local
882 JSValue styleSheetObj = PreparePesudoObjects(widthValue); in ACELiteStyleManagerCSSPesudo001()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_form.cpp124 JSRef<JSVal> widthValue = sizeObj->GetProperty("width"); in SetSize() local
125 if (!widthValue->IsNull() && !widthValue->IsEmpty()) { in SetSize()
126 if (widthValue->IsNumber()) { in SetSize()
127 width = Dimension(widthValue->ToNumber<double>(), DimensionUnit::VP); in SetSize()
128 } else if (widthValue->IsString()) { in SetSize()
129 width = StringUtils::StringToDimension(widthValue->ToString(), true); in SetSize()
H A Djs_base_node.cpp200 auto widthValue = width->IsNumber() ? width->ToNumber<float>() : 0.0f; in ConstructorCallback() local
201 widthValue = LessNotEqual(widthValue, 0.0f) ? 0.0f : widthValue; in ConstructorCallback()
205 selfIdealSize.SetWidth(PipelineBase::Vp2PxWithCurrentDensity(widthValue)); in ConstructorCallback()
H A Djs_plugin.cpp100 JSRef<JSVal> widthValue = sizeObj->GetProperty("width"); in JsSize() local
102 if (!ParseJsDimensionVp(widthValue, width)) { in JsSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_drag_bar_pattern.cpp224 auto widthValue = BAR_WIDTH.Value() + BAR_WIDTH.Value() * (SCALE - 1.0f) * scale; in CreatePropertyCallback() local
229 barWidth.SetValue(widthValue); in CreatePropertyCallback()
236 … auto widthValue = BAR_WIDTH.Value() * SCALE + BAR_WIDTH.Value() * (1.0f - SCALE) * scale; in CreatePropertyCallback() local
241 barWidth.SetValue(widthValue); in CreatePropertyCallback()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_form_component_bridge.cpp122 Local<JSValueRef> widthValue = runtimeCallInfo->GetCallArgRef(1); in SetSize() local
128 bool hasWidth = (!widthValue->IsNull() && !widthValue->IsUndefined() && in SetSize()
129 ArkTSUtils::ParseJsDimensionVp(vm, widthValue, width)); in SetSize()
H A Darkts_native_counter_bridge.cpp105 Local<JSValueRef> widthValue = runtimeCallInfo->GetCallArgRef(1); in SetCounterWidth() local
109 ArkTSUtils::ParseJsDimensionVp(vm, widthValue, width, false); in SetCounterWidth()
162 Local<JSValueRef> widthValue = runtimeCallInfo->GetCallArgRef(1); // 1: width Value in SetCounterSize() local
165 ArkTSUtils::ParseJsDimensionVp(vm, widthValue, width, false); in SetCounterSize()
H A Darkts_native_render_node_bridge.cpp526 float widthValue = 0; in SetFrame() local
528 widthValue = width->ToNumber(vm)->Value(); in SetFrame()
538 nativeNode, positionXValue, positionYValue, widthValue, heightValue); in SetFrame()
549 float widthValue = 0; in SetSize() local
551 widthValue = width->ToNumber(vm)->Value(); in SetSize()
566 …GetArkUINodeModifiers()->getRenderNodeModifier()->setSize(nativeNode, widthValue, heightValue, uni… in SetSize()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dndk-bind-gesture-events.md19 ArkUI_NumberValue widthValue[] = {{400}};
20 ArkUI_AttributeItem width = {widthValue, 1};
120 ArkUI_NumberValue widthValue[] = {{200}};
121 ArkUI_AttributeItem width = {widthValue, 1};
255 ArkUI_NumberValue widthValue[] = {{200}};
256 ArkUI_AttributeItem width = {widthValue, 1};
394 ArkUI_NumberValue widthValue[] = {{200}};
395 ArkUI_AttributeItem width = {widthValue, 1};
H A Dndk-build-pop-up-window.md113 ArkUI_NumberValue widthValue[] = {{.f32 = 300}};
114 …ArkUI_AttributeItem widthItem = {.value = widthValue, .size = sizeof(widthValue) / sizeof(ArkUI_Nu…
H A Dndk-use-animation.md126 ArkUI_NumberValue widthValue[] = {{.f32 = 500}};
127 …ArkUI_AttributeItem widthItem = {.value = widthValue, .size = sizeof(widthValue) / sizeof(ArkUI_Nu…
H A Darkts-graphics-display.md609 @State widthValue: number = 0
623 this.widthValue = msg.width
633 ….overlay('\nwidth: ' + String(this.widthValue) + ', height: ' + String(this.heightValue) + '\ncomp…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dform_component_modifier.cpp58 void SetFormSize(ArkUINodeHandle node, ArkUI_Float32 widthValue, ArkUI_Int32 widthUnit, in SetFormSize() argument
64 Dimension(widthValue, static_cast<OHOS::Ace::DimensionUnit>(widthUnit)), in SetFormSize()
H A Dcheckboxgroup_modifier.cpp118 …xGroupMark(ArkUINodeHandle node, uint32_t color, ArkUI_Float32 sizeValue, ArkUI_Float32 widthValue) in SetCheckboxGroupMark() argument
127 Dimension width = Dimension(widthValue, DEFAULT_UNIT); in SetCheckboxGroupMark()
H A Dnode_checkbox_modifier.cpp70 void SetMark(ArkUINodeHandle node, uint32_t color, float sizeValue, int sizeUnit, float widthValue,… in SetMark() argument
79 …Dimension width = Dimension(static_cast<double>(widthValue), static_cast<OHOS::Ace::DimensionUnit>… in SetMark()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dradio_switch_tdd_test.cpp101 jerry_value_t widthValue = jerry_create_boolean(false); in WidthRadioValueTest002() local
102 JerrySetNamedProperty(styleObj_, "width", widthValue); in WidthRadioValueTest002()
103 jerry_release_value(widthValue); in WidthRadioValueTest002()
H A Dpercent_tdd_test.h61 …void ConfigStylesWithRect(JSValue staticStyle, const char *widthValue, const char *heightValue) co…
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-bind-gesture-events.md19 ArkUI_NumberValue widthValue[] = {{400}};
20 ArkUI_AttributeItem width = {widthValue, 1};
120 ArkUI_NumberValue widthValue[] = {{200}};
121 ArkUI_AttributeItem width = {widthValue, 1};
255 ArkUI_NumberValue widthValue[] = {{200}};
256 ArkUI_AttributeItem width = {widthValue, 1};
394 ArkUI_NumberValue widthValue[] = {{200}};
395 ArkUI_AttributeItem width = {widthValue, 1};
H A Dndk-build-pop-up-window.md113 ArkUI_NumberValue widthValue[] = {{.f32 = 300}};
114 …ArkUI_AttributeItem widthItem = {.value = widthValue, .size = sizeof(widthValue) / sizeof(ArkUI_Nu…
H A Dndk-use-animation.md126 ArkUI_NumberValue widthValue[] = {{.f32 = 500}};
127 …ArkUI_AttributeItem widthItem = {.value = widthValue, .size = sizeof(widthValue) / sizeof(ArkUI_Nu…
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_swiper_ffi.cpp107 Dimension widthValue(width, static_cast<DimensionUnit>(widthUnit)); in FfiOHOSAceFrameworkSwiperSetSize() local
109 ViewAbstractModel::GetInstance()->SetWidth(widthValue); in FfiOHOSAceFrameworkSwiperSetSize()
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/
H A Djs_pip_window_manager.cpp144 napi_value widthValue = nullptr; in GetPictureInPictureOptionFromJs() local
160 napi_get_named_property(env, optionObject, "contentWidth", &widthValue); in GetPictureInPictureOptionFromJs()
169 ConvertFromJsValue(env, widthValue, width); in GetPictureInPictureOptionFromJs()
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/ops/
H A Dresize_bilinear_builder_test.cpp79 int64_t *widthValue = new (std::nothrow) int64_t(1); in SaveWidthTensor() local
80 EXPECT_NE(nullptr, widthValue); in SaveWidthTensor()
81 widthTensor->SetBuffer(widthValue, sizeof(int64_t)); in SaveWidthTensor()
646 int64_t widthValue = 1; variable
654 EXPECT_EQ(widthReturn, widthValue);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/
H A Dwrap_layout_algorithm.cpp273 auto widthValue = constraint->selfIdealSize.Width(); in PerformLayoutInitialize() local
275 hasIdealWidth_ = widthValue.has_value(); in PerformLayoutInitialize()
278 mainLengthLimit_ = hasIdealWidth_ ? widthValue.value() : constraint->maxSize.Width(); in PerformLayoutInitialize()
282 crossLengthLimit_ = hasIdealWidth_ ? widthValue.value() : constraint->maxSize.Width(); in PerformLayoutInitialize()

12