/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/ |
H A D | js_swiper_theme.h | 37 SwiperParameters swiperParameters = JSSwiper::GetDotIndicatorInfo(obj); in ApplyThemeInConstructor() local 38 ApplyThemeToDotIndicatorForce(swiperParameters); in ApplyThemeInConstructor() 39 SwiperModel::GetInstance()->SetDotIndicatorStyle(swiperParameters); in ApplyThemeInConstructor() 52 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicator() 59 static void ApplyThemeToDotIndicatorForce(SwiperParameters &swiperParameters) in ApplyThemeToDotIndicatorForce() argument 62 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicatorForce() 76 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToIndicatorStyle() 91 swiperParameters.fontColor = themeColors->FontPrimary(); in ApplyThemeToDigitIndicator() 94 swiperParameters.selectedFontColor = themeColors->FontPrimary(); in ApplyThemeToDigitIndicator() 106 swiperParameters.arrowColor = themeColors->IconPrimary(); in ApplyThemeToDisplayArrow() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | swiper_model_impl.cpp | 247 if (swiperParameters.dimLeft.has_value()) { in SetIndicatorStyle() 248 indicator->SetLeft(swiperParameters.dimLeft.value()); in SetIndicatorStyle() 250 if (swiperParameters.dimTop.has_value()) { in SetIndicatorStyle() 251 indicator->SetTop(swiperParameters.dimTop.value()); in SetIndicatorStyle() 253 if (swiperParameters.dimRight.has_value()) { in SetIndicatorStyle() 256 if (swiperParameters.dimBottom.has_value()) { in SetIndicatorStyle() 259 if (swiperParameters.itemWidth.has_value()) { in SetIndicatorStyle() 262 if (swiperParameters.itemHeight.has_value()) { in SetIndicatorStyle() 265 if (swiperParameters.maskValue.has_value()) { in SetIndicatorStyle() 268 if (swiperParameters.colorVal.has_value()) { in SetIndicatorStyle() [all …]
|
H A D | swiper_model_impl.h | 51 void SetIndicatorStyle(const SwiperParameters& swiperParameters) override;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_swiper.cpp | 461 SwiperParameters swiperParameters; in GetDotIndicatorInfo() local 462 swiperParameters.dimLeft = ParseIndicatorDimension(leftValue); in GetDotIndicatorInfo() 463 swiperParameters.dimTop = ParseIndicatorDimension(topValue); in GetDotIndicatorInfo() 464 swiperParameters.dimRight = ParseIndicatorDimension(rightValue); in GetDotIndicatorInfo() 490 swiperParameters.maskValue = mask; in GetDotIndicatorInfo() 504 return swiperParameters; in GetDotIndicatorInfo() 738 SwiperParameters swiperParameters; in SetIndicatorStyle() local 754 swiperParameters.dimTop = ParseIndicatorDimension(topValue); in SetIndicatorStyle() 762 swiperParameters.selectedItemWidth = in SetIndicatorStyle() 764 swiperParameters.selectedItemHeight = in SetIndicatorStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_swiper_modifier.cpp | 234 SwiperParameters swiperParameters; in GetDotIndicatorInfo() local 239 swiperParameters.dimLeft = ParseIndicatorDimension(leftValue); in GetDotIndicatorInfo() 240 swiperParameters.dimTop = ParseIndicatorDimension(topValue); in GetDotIndicatorInfo() 241 swiperParameters.dimRight = ParseIndicatorDimension(rightValue); in GetDotIndicatorInfo() 242 swiperParameters.dimBottom = ParseIndicatorDimension(bottomValue); in GetDotIndicatorInfo() 262 swiperParameters.maskValue = (maskValue == "1" ? true : false); in GetDotIndicatorInfo() 270 ParseMaxDisplayCount(dotIndicatorInfo, swiperParameters); in GetDotIndicatorInfo() 272 return swiperParameters; in GetDotIndicatorInfo() 304 SwiperParameters swiperParameters; in GetDotIndicatorProps() local 330 swiperParameters.colorVal = in GetDotIndicatorProps() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_attr_test_ng.cpp | 264 SwiperParameters swiperParameters; variable 265 swiperParameters.dimLeft = std::make_optional<Dimension>(10.f); 266 swiperParameters.dimTop = std::make_optional<Dimension>(10.f); 267 swiperParameters.dimRight = std::make_optional<Dimension>(10.f); 268 swiperParameters.dimBottom = std::make_optional<Dimension>(10.f); 269 swiperParameters.itemWidth = std::make_optional<Dimension>(10.f); 273 swiperParameters.maskValue = std::make_optional<bool>(true); 277 model.SetDotIndicatorStyle(swiperParameters); in __anon6dbdd6e30e02() 1119 SwiperParameters swiperParameters; variable 1120 swiperParameters.colorVal = Color(Color::BLUE); [all …]
|
H A D | swiper_indicator_test_ng.cpp | 228 SwiperParameters swiperParameters; variable 229 swiperParameters.colorVal = Color(Color::BLUE); 230 …CreateWithItem([swiperParameters](SwiperModelNG model) { model.SetDotIndicatorStyle(swiperParamete… in __anon9d6715250602() 231 ASSERT_EQ(pattern_->swiperParameters_->colorVal, swiperParameters.colorVal);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_model_ng.h | 65 void SetIndicatorStyle(const SwiperParameters& swiperParameters) override; 66 void SetDotIndicatorStyle(const SwiperParameters& swiperParameters) override; 105 … static void SetDotIndicatorStyle(FrameNode* frameNode, const SwiperParameters& swiperParameters);
|
H A D | swiper_model.h | 131 virtual void SetIndicatorStyle(const SwiperParameters& swiperParameters); 134 virtual void SetDotIndicatorStyle(const SwiperParameters& swiperParameters) {} in SetDotIndicatorStyle() argument
|
H A D | swiper_model_ng.cpp | 262 void SwiperModelNG::SetIndicatorStyle(const SwiperParameters& swiperParameters) in SetIndicatorStyle() argument 268 pattern->SetSwiperParameters(swiperParameters); in SetIndicatorStyle() 271 void SwiperModelNG::SetDotIndicatorStyle(const SwiperParameters& swiperParameters) in SetDotIndicatorStyle() argument 277 pattern->SetSwiperParameters(swiperParameters); in SetDotIndicatorStyle() 615 …SwiperModelNG::SetDotIndicatorStyle(FrameNode* frameNode, const SwiperParameters& swiperParameters) in SetDotIndicatorStyle() argument 620 pattern->SetSwiperParameters(swiperParameters); in SetDotIndicatorStyle()
|
H A D | swiper_pattern.h | 260 void SetSwiperParameters(const SwiperParameters& swiperParameters) in SetSwiperParameters() argument 262 swiperParameters_ = std::make_shared<SwiperParameters>(swiperParameters); in SetSwiperParameters()
|
H A D | swiper_pattern.cpp | 4121 auto swiperParameters = GetSwiperParameters(); in UpdatePaintProperty() local 4122 CHECK_NULL_VOID(swiperParameters); in UpdatePaintProperty() 4123 …paintProperty->UpdateItemWidth(swiperParameters->itemWidth.value_or(swiperIndicatorTheme->GetSize(… in UpdatePaintProperty() 4124 …paintProperty->UpdateItemHeight(swiperParameters->itemHeight.value_or(swiperIndicatorTheme->GetSiz… in UpdatePaintProperty() 4126 swiperParameters->selectedItemWidth.value_or(swiperIndicatorTheme->GetSize())); in UpdatePaintProperty() 4128 swiperParameters->selectedItemHeight.value_or(swiperIndicatorTheme->GetSize())); in UpdatePaintProperty() 4129 paintProperty->UpdateIndicatorMask(swiperParameters->maskValue.value_or(false)); in UpdatePaintProperty() 4130 … paintProperty->UpdateColor(swiperParameters->colorVal.value_or(swiperIndicatorTheme->GetColor())); in UpdatePaintProperty() 4132 swiperParameters->selectedColorVal.value_or(swiperIndicatorTheme->GetSelectedColor())); in UpdatePaintProperty()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_swiper_ffi.cpp | 120 SwiperParameters swiperParameters { in FfiOHOSAceFrameworkSwiperSetIndicatorStyle() local 128 SwiperModel::GetInstance()->SetIndicatorStyle(swiperParameters); in FfiOHOSAceFrameworkSwiperSetIndicatorStyle()
|