Home
last modified time | relevance | path

Searched refs:widthFactor (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Dborder_image_painter.cpp662 double widthFactor = 0.0; in PaintBorderImageRepeat() local
664 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat()
665 if (GreatNotEqual(widthFactor, 0.0) && LessOrEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
682 } else if (GreatNotEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
684 … halfSurplusHorizontalLength = (borderCenterWidth_ - (int)(widthFactor)*imageCenterWidth_) / 2; in PaintBorderImageRepeat()
719 for (int32_t i = 0; i < static_cast<int32_t>(widthFactor); i++) { in PaintBorderImageRepeat()
824 double widthFactor = 0.0; in PaintBorderImageRepeat() local
826 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat()
827 if (GreatNotEqual(widthFactor, 0.0) && LessOrEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
841 } else if (GreatNotEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dborder_image_painter.cpp425 double widthFactor = 0.0; in PaintBorderImageRepeat() local
427 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat()
428 if (GreatNotEqual(widthFactor, 0.0) && LessOrEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
442 } else if (GreatNotEqual(widthFactor, 1.0)) { in PaintBorderImageRepeat()
444 … halfSurplusHorizontalLength = (borderCenterWidth_ - (int)(widthFactor)*imageCenterWidth_) / 2; in PaintBorderImageRepeat()
471 for (int32_t i = 0; i < static_cast<int32_t>(widthFactor); i++) { in PaintBorderImageRepeat()