/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/ |
H A D | text_style.cpp | 131 heightScale == rhs.heightScale && in operator ==() 155 Drawing::IsScalarAlmostEqual(heightScale, rhs.heightScale) && in EqualByFonts() 194 Drawing::IsScalarAlmostEqual(heightScale, rhs.heightScale) && in MatchOneAttribute()
|
H A D | typography_style.cpp | 27 .heightScale = heightScale, in GetTextStyle()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/ |
H A D | typography_style.h | 42 double heightScale = 1.0; member 66 double heightScale = 1; member
|
H A D | text_style.h | 137 double heightScale = 1.0; member
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/ |
H A D | typography_style.h | 50 double heightScale = 1.0; member 85 skia::textlayout::nearlyEqual(this->heightScale, rhs.heightScale) && in operator ==()
|
H A D | text_style.h | 94 double heightScale = 1.0; member
|
/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/custom/ |
H A D | lume_custom_render.h | 73 void SetScaleInfo(float widthScale, float heightScale) in SetScaleInfo() argument 76 heightScale_ = heightScale; in SetScaleInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_pattern.cpp | 84 auto heightScale = mainProperty->GetRenderHeight().value_or(1.0); in OnDirtyLayoutWrapperSwap() local 96 scale, widthScale, heightScale, in OnDirtyLayoutWrapperSwap() local 277 auto heightScale = mainProperty->GetRenderHeight().value_or(1.0); in ToJsonValue() local 279 json->PutExtAttr("renderHeight", std::to_string(heightScale).c_str(), filter); in ToJsonValue()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/ |
H A D | texture_layer.cpp | 186 float heightScale = image_.textureInfo_.heightScale_; in ConfigWindow() local 192 static_cast<uint32_t>(width * widthScale), static_cast<uint32_t>(height * heightScale))); in ConfigWindow() 197 static_cast<uint32_t>(height * scale * heightScale)); in ConfigWindow() 234 image_.textureInfo_.heightScale_ = static_cast<float>(windowChangeInfo.heightScale); in OnWindowChange()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ |
H A D | texture_info.h | 41 float heightScale = 1.0f; member
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | drawing_prop_convertor_test_ng.cpp | 395 * @tc.expected: retTextStyle.heightScale is expected value. in HWTEST_F() 399 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PX.value_ / FONT_SIZE); in HWTEST_F() 416 * @tc.expected: retTextStyle.heightScale is equal to LINE_HIGHT_PERCENT.value_. in HWTEST_F() 422 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PERCENT.value_); in HWTEST_F() 457 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PX.value_ / FONT_SIZE); in HWTEST_F() 519 EXPECT_EQ(retTextStyle.heightScale, 1.0); in HWTEST_F() 531 EXPECT_EQ(retTextStyle.heightScale, 1.0); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | drawing_prop_convertor.cpp | 296 rsTextStyle.heightScale = textStyle.GetLineHeight().Value(); in ToRSTextStyle() 317 rsTextStyle.heightScale = lineHeight / fontSize; in ToRSTextStyle() 323 rsTextStyle.heightScale = 1; in ToRSTextStyle()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/ |
H A D | convert.cpp | 67 .height = style.heightScale, in Convert() 183 textStyle.height = style.heightScale; in Convert() 261 textStyle.heightScale = style.height; in Convert()
|
/foundation/arkui/ace_engine/frameworks/core/components/font/ |
H A D | constants_converter.cpp | 670 txtStyle.heightScale = textStyle.GetLineHeight().Value(); in ConvertTxtStyle() 679 txtStyle.heightScale = lineHeight / fontSize; in ConvertTxtStyle() 681 txtStyle.heightScale = 1; in ConvertTxtStyle() 821 txtStyle.heightScale = lineHeightScale + lineSpacingScale; in ConvertTxtStyle() 823 txtStyle.heightScale = lineHeightScale; in ConvertTxtStyle() 825 txtStyle.heightScale = ORIGINAL_LINE_HEIGHT_SCALE + lineSpacingScale; in ConvertTxtStyle() 827 txtStyle.heightScale = 1; in ConvertTxtStyle()
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_text_style.h | 133 double heightScale = 1.0; member in OHOS::Ace::Testing::TestingTextStyle
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/ |
H A D | image_loading_context.cpp | 113 double heightScale = dstSize.Height() / srcSize.Height() * viewScale; in CalculateTargetSize() local 114 if (widthScale < 1.0 && heightScale < 1.0) { in CalculateTargetSize() 115 targetSize = SizeF(targetSize.Width() * widthScale, targetSize.Height() * heightScale); in CalculateTargetSize()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/ |
H A D | napi_common.cpp | 265 SetDoubleValueFromJS(env, argValue, "heightScale", textStyle.heightScale);
in SetTextStyleBaseType() 269 textStyle.heightScale = textStyle.heightScale < 0 ? 0 : textStyle.heightScale;
in SetTextStyleBaseType() 597 napi_set_named_property(env, objValue, "heightScale", CreateJsNumber(env, textStyle.heightScale));
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | ithumbnail_helper.cpp | 481 float heightScale = (1.0f * lcdDesiredHeight) / data.source->GetHeight(); in IsCreateLcdSuccess() local 482 lcdSource->scale(widthScale, heightScale); in IsCreateLcdSuccess() 527 float heightScale = (1.0f * data.lcdDesiredSize.height) / data.sourceEx->GetHeight(); in IsCreateLcdExSuccess() local 528 lcdSourceEx->scale(widthScale, heightScale); in IsCreateLcdExSuccess()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | text_style.h | 654 void SetHeightScale(double heightScale) in SetHeightScale() argument 656 heightScale_ = heightScale; in SetHeightScale()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_text_typography_test.cpp | 274 EXPECT_EQ(ConvertToOriginalText(txtStyle)->heightScale, 0.0); in HWTEST_F() 276 EXPECT_EQ(ConvertToOriginalText(txtStyle)->heightScale, -1.0); in HWTEST_F() 741 EXPECT_EQ(ConvertToOriginalText(typoStyle)->heightScale, 0.0); in HWTEST_F() 744 EXPECT_EQ(ConvertToOriginalText(typoStyle)->heightScale, 0); in HWTEST_F() 1844 // 2.0 For heightScale in HWTEST_F() 1845 strutstyle->heightScale = 2; in HWTEST_F() 2252 EXPECT_EQ(ConvertToOriginalText(typoStyle)->heightScale, 0); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/image/ |
H A D | render_image.cpp | 479 double heightScale = dstRect_.Height() / srcRect_.Height() * scale_; in CalculateResizeTarget() local 480 if (widthScale < 1.0 && heightScale < 1.0) { in CalculateResizeTarget() 481 resizeScale_ = Size(widthScale, heightScale); in CalculateResizeTarget()
|
/foundation/arkui/ace_engine/frameworks/component_test/core/ |
H A D | component_test_component_impl.cpp | 99 float heightScale = context->GetRootHeight() * viewScale / rect.Height(); in PinchOutImpl() local 100 float originalScale = (widthScale < heightScale) ? widthScale : heightScale; in PinchOutImpl()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/ |
H A D | lume_common.cpp | 212 float heightScale = textureInfo.heightScale_; in OnWindowChange() local 213 SetupCameraViewPort(textureInfo.width_ * widthScale, textureInfo.height_ * heightScale); in OnWindowChange() 216 customRender_->OnSizeChange(textureInfo.width_ * widthScale, textureInfo.height_ * heightScale); in OnWindowChange() 217 customRender_->SetScaleInfo(widthScale, heightScale); in OnWindowChange()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_typography.cpp | 341 ConvertToOriginalText<TextStyle>(style)->heightScale = fontHeight; in OH_Drawing_SetTextStyleFontHeight() 1536 ConvertToOriginalText<TypographyStyle>(style)->heightScale = fontHeight < 0 ? 0 : fontHeight; in OH_Drawing_SetTypographyTextFontHeight() 2068 return textStyle->heightScale; in OH_Drawing_TextStyleGetFontHeight() 3073 OH_Drawing_SetTypographyTextLineStyleFontHeight(style, strutstyle->heightScale); in OH_Drawing_SetTypographyStyleTextStrutStyle() 3112 strutstyle->heightScale = typographyStyle->lineStyleHeightScale; in OH_Drawing_TypographyStyleGetStrutStyle() 3156 from->heightScale == to->heightScale && from->heightOverride == to->heightOverride && in OH_Drawing_TypographyStyleStrutStyleEquals()
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | convert_test.cpp | 192 EXPECT_EQ(sptextStyle.height, textStyle.heightScale); in HWTEST_F()
|