Home
last modified time | relevance | path

Searched refs:heightScale (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtext_style.cpp131 heightScale == rhs.heightScale && in operator ==()
155 Drawing::IsScalarAlmostEqual(heightScale, rhs.heightScale) && in EqualByFonts()
194 Drawing::IsScalarAlmostEqual(heightScale, rhs.heightScale) && in MatchOneAttribute()
H A Dtypography_style.cpp37 .heightScale = heightScale, in GetTextStyle()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___drawing___strut_style.md23 | double [heightScale](#heightscale) | 行高 |
87 ### heightScale subsection
90 double OH_Drawing_StrutStyle::heightScale
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/
H A Dtypography_style.h36 double heightScale = 1.0; member
72 skia::textlayout::nearlyEqual(this->heightScale, rhs.heightScale) &&
H A Dtext_style.h94 double heightScale = 1.0; member
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/export/texgine/
H A Dtypography_style.h41 double heightScale = 1.0; member
65 double heightScale = 1; member
H A Dtext_style.h138 double heightScale = 1.0; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_pattern.cpp86 auto heightScale = mainProperty->GetRenderHeight().value_or(1.0); in OnDirtyLayoutWrapperSwap() local
98 scale, widthScale, heightScale, in OnDirtyLayoutWrapperSwap()
279 auto heightScale = mainProperty->GetRenderHeight().value_or(1.0); in ToJsonValue() local
281 json->PutExtAttr("renderHeight", std::to_string(heightScale).c_str(), filter); in ToJsonValue()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/
H A Dtexture_layer.cpp186 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()
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___drawing___strut_style.md23 | double [heightScale](#heightscale) | Line height. |
87 ### heightScale subsection
90 double OH_Drawing_StrutStyle::heightScale
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/custom/
H A Dlume_custom_render.h73 void SetScaleInfo(float widthScale, float heightScale) in SetScaleInfo() argument
76 heightScale_ = heightScale; in SetScaleInfo()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/
H A Ddrawing_prop_convertor_test_ng.cpp399 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PX.value_ / FONT_SIZE);
422 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PERCENT.value_);
457 EXPECT_EQ(retTextStyle.heightScale, LINE_HIGHT_PX.value_ / FONT_SIZE);
519 EXPECT_EQ(retTextStyle.heightScale, 1.0);
531 EXPECT_EQ(retTextStyle.heightScale, 1.0);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp296 rsTextStyle.heightScale = textStyle.GetLineHeight().Value(); in ToRSTextStyle()
317 rsTextStyle.heightScale = lineHeight / fontSize; in ToRSTextStyle()
323 rsTextStyle.heightScale = 1; in ToRSTextStyle()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/
H A Dtexture_info.h41 float heightScale = 1.0f; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Dconstants_converter.cpp670 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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dconvert.cpp67 .height = style.heightScale, in Convert()
182 textStyle.height = style.heightScale; in Convert()
260 textStyle.heightScale = style.height; in Convert()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/
H A Dnapi_common.cpp215 SetDoubleValueFromJS(env, argValue, "heightScale", textStyle.heightScale); in SetTextStyleBaseType()
219 textStyle.heightScale = textStyle.heightScale < 0 ? 0 : textStyle.heightScale; in SetTextStyleBaseType()
587 … napi_set_named_property(env, objValue, "heightScale", CreateJsNumber(env, textStyle.heightScale)); in CreateTextStyleJsValue()
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_text_style.h133 double heightScale = 1.0; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_loading_context.cpp110 double heightScale = dstSize.Height() / srcSize.Height() * viewScale; in CalculateTargetSize() local
111 if (widthScale < 1.0 && heightScale < 1.0) { in CalculateTargetSize()
112 targetSize = SizeF(targetSize.Width() * widthScale, targetSize.Height() * heightScale); in CalculateTargetSize()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_source_loading.cpp306 float heightScale = (1.0f * targetSize.height) / pixelMap->GetHeight(); in GeneratePictureSource() local
307 pixelMap->resize(widthScale, heightScale); in GeneratePictureSource()
308 gainMap->resize(widthScale, heightScale); in GeneratePictureSource()
H A Dithumbnail_helper.cpp479 float heightScale = (1.0f * lcdDesiredHeight) / lcdSource->GetMainPixel()->GetHeight(); in SaveLcdPictureSource() local
480 lcdSource->GetMainPixel()->scale(widthScale, heightScale); in SaveLcdPictureSource()
481 lcdSource->GetGainmapPixelMap()->scale(widthScale, heightScale); in SaveLcdPictureSource()
523 float heightScale = (1.0f * lcdDesiredHeight) / lcdSource->GetHeight(); in SaveLcdPixelMapSource() local
524 lcdSource->scale(widthScale, heightScale); in SaveLcdPixelMapSource()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.h654 void SetHeightScale(double heightScale) in SetHeightScale() argument
656 heightScale_ = heightScale; in SetHeightScale()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_text_typography.cpp357 ConvertToOriginalText<TextStyle>(style)->heightScale = fontHeight; in OH_Drawing_SetTextStyleFontHeight()
1843 … ConvertToOriginalText<TypographyStyle>(style)->heightScale = fontHeight < 0 ? 0 : fontHeight; in OH_Drawing_SetTypographyTextFontHeight()
2405 return textStyle->heightScale; in OH_Drawing_TextStyleGetFontHeight()
3410 OH_Drawing_SetTypographyTextLineStyleFontHeight(style, strutstyle->heightScale); in OH_Drawing_SetTypographyStyleTextStrutStyle()
3449 strutstyle->heightScale = typographyStyle->lineStyleHeightScale; in OH_Drawing_TypographyStyleGetStrutStyle()
3493 from->heightScale == to->heightScale && from->heightOverride == to->heightOverride && in OH_Drawing_TypographyStyleStrutStyleEquals()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Drender_image.cpp479 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()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp212 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()

12