Home
last modified time | relevance | path

Searched refs:CalcRatio (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dsvg_dom_base.h99 if (Size::CalcRatio(svgSize_) > Size::CalcRatio(layout_)) { in ApplyContain()
113 if (Size::CalcRatio(svgSize_) > Size::CalcRatio(layout_)) { in ApplyCover()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dimage_painter.cpp34 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyContain()
44 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyCover()
59 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyFitWidth()
70 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyFitHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Drender_image.cpp528 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyContain()
538 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyCover()
548 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyFitWidth()
559 if (Size::CalcRatio(srcRect) > Size::CalcRatio(dstRect)) { in ApplyFitHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_layout_algorithm.cpp50 double aspectRatio = Size::CalcRatio(Size(4, 3)); // default aspect ratio os 4:3 in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension_size.h63 static double CalcRatio(const T& rectangle) in CalcRatio() function
H A Dsize.h205 static double CalcRatio(const T& rectangle) in CalcRatio() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_layout_algorithm.cpp80 auto aspectRatio = static_cast<float>(Size::CalcRatio(rawImageSize)); in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rating/
H A Drender_rating.cpp117 double realAspectRatio = Size::CalcRatio(GetLayoutSize()); in CalculateRatingSize()
467 double ratio = Size::CalcRatio(rawImageSize); in AdaptLayoutSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h377 double CalcRatio() const in CalcRatio() function
862 double CalcRatio() const in CalcRatio() function
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/image/
H A Dimage_test_ng.cpp1088 double aspectRatio = Size::CalcRatio(SizeF(IMAGE_SOURCESIZE_WIDTH, IMAGE_SOURCESIZE_HEIGHT));
1157 double aspectRatio = Size::CalcRatio(SizeF(ALT_SOURCESIZE_WIDTH, ALT_SOURCESIZE_HEIGHT));
1310 double aspectRatio = Size::CalcRatio(SizeF(IMAGE_SOURCESIZE_WIDTH, IMAGE_SOURCESIZE_HEIGHT));
1380 double aspectRatio = Size::CalcRatio(SizeF(ALT_SOURCESIZE_WIDTH, ALT_SOURCESIZE_HEIGHT));