Home
last modified time | relevance | path

Searched refs:imageFit_ (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_modifier.cpp23 imageFit_ = AceType::MakeRefPtr<AnimatablePropertyFloat>(0.0f); in ImageModifier()
25 AttachProperty(imageFit_); in ImageModifier()
56 imageFit_->Set(static_cast<float>(startImageFit_)); in SetImageFit()
58 imageFit_->Set(static_cast<float>(imagefit)); in SetImageFit()
99 ratio = std::abs((imageFit_->Get() - static_cast<float>(startImageFit_)) / difference); in DrawImageWithAnimation()
H A Dimage_modifier.h59 RefPtr<AnimatablePropertyFloat> imageFit_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dtexture_component.h81 imageFit_ = fit; in SetFit()
86 return imageFit_; in GetFit()
113 ImageFit imageFit_ { ImageFit::CONTAIN };
H A Drender_texture.h68 return imageFit_; in GetFit()
127 ImageFit imageFit_ = ImageFit::FILL; variable
129 ImageFit imageFit_ = ImageFit::CONTAIN; variable
H A Drosen_render_texture.cpp47 if (imageFit_ != ImageFit::FILL && GetRSNode()) { in Update()
192 imageFit_ = imageFit; in SyncProperties()
H A Drender_texture.cpp38 imageFit_ = texture->GetFit(); in Update()
120 switch (imageFit_) { in Measure()
H A Dvideo_element.h147 ImageFit imageFit_ { ImageFit::CONTAIN };
H A Dvideo_element.cpp188 imageFit_ = videoComponent->GetFit(); in InitStatus()
819 videoComponent->SetFit(imageFit_); in SetNewComponent()
1206 rosenTexture->SyncProperties(videoSize, imageFit_, imagePosition_); in OnResolutionChange()
1229 video->SetFit(imageFit_); in OnPrepared()
1569 image->SetImageFit(imageFit_); in CreatePoster()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_loading_context.cpp324 ImagePainter::ApplyImageFit(imageFit_, *userDefinedSize, dstSize_, srcRect_, dstRect_); in OnMakeCanvasImage()
329 ImagePainter::ApplyImageFit(imageFit_, imageSize, dstSize_, srcRect_, dstRect_); in OnMakeCanvasImage()
335 ImagePainter::ApplyImageFit(imageFit_, targetSize, dstSize_, srcRect_, dstRect_); in OnMakeCanvasImage()
353 ImagePainter::ApplyImageFit(imageFit_, *userDefinedSize, dstSize_, srcRect_, dstRect_); in ResizableCalcDstSize()
358 ImagePainter::ApplyImageFit(imageFit_, imageSize, dstSize_, srcRect_, dstRect_); in ResizableCalcDstSize()
364 ImagePainter::ApplyImageFit(imageFit_, targetSize, dstSize_, srcRect_, dstRect_); in ResizableCalcDstSize()
452 …bool res = autoResize != autoResize_ || imageFit != imageFit_ || sourceSize != GetSourceSize() || … in MakeCanvasImageIfNeed()
493 ctx->imageFit_ = imageFit; in MakeCanvasImage()
519 return imageFit_; in GetImageFit()
524 imageFit_ = imageFit; in SetImageFit()
H A Dimage_loading_context.h228 ImageFit imageFit_ = ImageFit::COVER; variable
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/image_provider/
H A Dmock_image_loading_context.cpp94 imageFit_ = incomingImageFit; in MakeCanvasImageIfNeed()
115 return imageFit_; in GetImageFit()
120 imageFit_ = imageFit; in SetImageFit()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_image.cpp64 (imageFit_ == other.imageFit_) && (imageRepeat_ == other.imageRepeat_) && in IsEqual()
198 RectF ApplyImageFitSwitch(ImageParameter &imageParameter, ImageFit imageFit_, RectF tempRectF) in ApplyImageFitSwitch() argument
200 switch (imageFit_) { in ApplyImageFitSwitch()
314 dstRect_ = ApplyImageFitSwitch(imageParameter, imageFit_, tempRectF); in ApplyImageFit()
335 return imageFit_; in GetImageFit()
341 .fitNum = static_cast<int32_t>(imageFit_), in GetAdaptiveImageInfoWithCustomizedFrameRect()
567 imageFit_ = static_cast<ImageFit>(fitNum); in SetImageFit()
643 int imageFit = static_cast<int>(imageFit_); in Marshalling()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_image_test.cpp170 image->imageFit_ = ImageFit::TOP_LEFT;
178 image->imageFit_ = ImageFit::NONE;
180 image->imageFit_ = ImageFit::FIT_WIDTH;
182 image->imageFit_ = ImageFit::FIT_HEIGHT;
184 image->imageFit_ = ImageFit::SCALE_DOWN;
198 image->imageFit_ = ImageFit::COVER;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drendering_context.cpp91 …Rosen::RsImageInfo rsImageInfo((int)(config.imageFit_), (int)(config.imageRepeat_), radii.get(), 1… in DrawToRSCanvas()
119 Rosen::Drawing::AdaptiveImageInfo rsImageInfo = { static_cast<int32_t>(config.imageFit_), in DrawToRSCanvas()
H A Dsvg_canvas_image.cpp31 …svgDom_->DrawImage(canvas, GetPaintConfig().imageFit_, Size(srcRect.GetWidth(), srcRect.GetHeight(… in DrawToRSCanvas()
H A Dskia_image.cpp220 …Rosen::RsImageInfo rsImageInfo((int)(config.imageFit_), (int)(config.imageRepeat_), radii.get(), 1… in DrawWithRecordingCanvas()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_render_image.h101 return imageFit_; in GetImageFit()
170 ImageFit imageFit_ = ImageFit::NONE; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dparticle_property.h92 return imageFit_; in GetImageFit()
97 imageFit_ = imageFit; in SetImageFit()
103 (imageFit_ == other.GetImageFit());
112 … .append(imageFit_.has_value() ? std::to_string(static_cast<int32_t>(imageFit_.value())) : "NA") in ToString()
120 std::optional<ImageFit> imageFit_; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Drender_image.h62 imageFit_ = imageFit; in SetImageFit()
66 return imageFit_; in GetImageFit()
390 ImageFit imageFit_ = ImageFit::COVER; variable
H A Dimage_component.cpp151 imageFit_ = imageFit; in SetImageFit()
229 return imageFit_; in GetImageFit()
H A Dimage_component.h231 ImageFit imageFit_ = ImageFit::COVER; variable
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_image.h123 desc += split + "\timageFit_: " + std::to_string(static_cast<int>(imageFit_)) + "\n"; in dump()
156 ImageFit imageFit_ = ImageFit::COVER; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dcanvas_image.h53 ImageFit imageFit_ = ImageFit::COVER; member
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/image_provider/
H A Dimage_provider_test_ng.cpp581 ctx->imageFit_ = ImageFit::NONE;
587 ctx->imageFit_ = ImageFit::SCALE_DOWN;
736 ctx->imageFit_ = ImageFit::NONE;
763 ctx->imageFit_ = ImageFit::COVER;
826 ctx->imageFit_ = ImageFit::NONE;
853 ctx->imageFit_ = ImageFit::COVER;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/image/
H A Dimage_test_ng.cpp208 EXPECT_EQ(altImagePaintConfig.imageFit_, IMAGE_FIT_DEFAULT);
221 EXPECT_EQ(imagePaintConfig.imageFit_, IMAGE_FIT_DEFAULT);
265 EXPECT_EQ(paintConfig.imageFit_, ImageFit::COVER);
629 EXPECT_EQ(config->imageFit_, IMAGE_FIT_DEFAULT);
1489 EXPECT_EQ(pattern->loadingCtx_->imageFit_, ImageFit::COVER);
1912 EXPECT_EQ(imageModifier.imageFit_->Get(), static_cast<float>(ImageFit::COVER));

12