Home
last modified time | relevance | path

Searched refs:imageCenterWidth_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dborder_image_painter.cpp45 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 Dborder_image_painter.h65 double imageCenterWidth_ = 0.0; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Dborder_image_painter.cpp54 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 Dborder_image_painter.h90 double imageCenterWidth_ = 0.0; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/
H A Dborder_image_painter_test_ng.cpp123 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_);