Searched refs:imageCenterWidth_ (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | border_image_painter.cpp | 45 imageCenterWidth_ = std::ceil(imageWidth_ - leftSlice_ - rightSlice_); in InitPainter() 50 srcRectTop_ = RSRect(leftSlice_, 0, leftSlice_ + imageCenterWidth_, topSlice_); in InitPainter() 322 if (fmod(borderCenterWidth_, imageCenterWidth_) != 0) { in PaintBorderImageRound() 370 if (NearZero(imageCenterWidth_) || NearZero(imageCenterHeight_)) { in PaintBorderImageSpace() 397 roundStartHorizontal + imageCenterWidth_, offsetBottomY); in PaintBorderImageSpace() 400 roundStartHorizontal += imageCenterWidth_ + blankHorizontalSize; in PaintBorderImageSpace() 426 if (GreatNotEqual(imageCenterWidth_, 0.0)) { in PaintBorderImageRepeat() 427 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat() 474 repeatHorizontalStart + imageCenterWidth_, offsetTopY + topWidth_); in PaintBorderImageRepeat() 479 repeatHorizontalStart + imageCenterWidth_, offsetBottomY); in PaintBorderImageRepeat() [all …]
|
H A D | border_image_painter.h | 65 double imageCenterWidth_ = 0.0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | border_image_painter.cpp | 54 imageCenterWidth_ = std::ceil(imageWidth_ - leftSlice_ - rightSlice_); in InitPainter() 460 if (fmod(borderCenterWidth_, imageCenterWidth_) != 0) { in PaintBorderImageRound() 521 if (fmod(borderCenterWidth_, imageCenterWidth_) != 0) { in PaintBorderImageRound() 615 imageCenterWidth_ + roundStartHorizontal, offsetBottomY); in PaintBorderImageSpace() 618 roundStartHorizontal += imageCenterWidth_ + blankHorizontalSize; in PaintBorderImageSpace() 663 if (GreatNotEqual(imageCenterWidth_, 0.0)) { in PaintBorderImageRepeat() 664 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat() 734 repeatHorizontalStart += imageCenterWidth_; in PaintBorderImageRepeat() 825 if (GreatNotEqual(imageCenterWidth_, 0.0)) { in PaintBorderImageRepeat() 826 widthFactor = borderCenterWidth_ / imageCenterWidth_; in PaintBorderImageRepeat() [all …]
|
H A D | border_image_painter.h | 90 double imageCenterWidth_ = 0.0; variable
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | border_image_painter_test_ng.cpp | 123 EXPECT_EQ(borderImagePainter.imageCenterWidth_, -720); 460 borderImagePainter.imageCenterWidth_ = ONE; 470 …uto widthCount = fmod(borderImagePainter.borderCenterWidth_, borderImagePainter.imageCenterWidth_); 503 borderImagePainter.imageCenterWidth_ = FIVE; 511 …uto widthCount = fmod(borderImagePainter.borderCenterWidth_, borderImagePainter.imageCenterWidth_); 545 borderImagePainter.imageCenterWidth_ = TWO; 553 …uto widthCount = fmod(borderImagePainter.borderCenterWidth_, borderImagePainter.imageCenterWidth_);
|