/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | native_node_extented.cpp | 355 return indicator; in OH_ArkUI_SwiperIndicator_Create() 360 delete indicator; in OH_ArkUI_SwiperIndicator_Dispose() 365 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetStartPosition() 378 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetTopPosition() 391 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetEndPosition() 404 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetBottomPosition() 417 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetItemWidth() 430 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetItemHeight() 443 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetSelectedItemWidth() 456 CHECK_NULL_VOID(indicator); in OH_ArkUI_SwiperIndicator_SetSelectedItemHeight() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-container-swiper.md | 20 | indicator | boolean | true | No | Whether to enable the indicator. The default value is **true… 21 …er to enable the digital indicator. The default value is **false**.<br>The digital indicator takes… 24 …ipe gesture is performed vertically. A vertical swipe uses the vertical indicator. … 33 | indicator-color | <color> | - | No | Fil… 34 | indicator-selected-color | <color> | - | No | Col… 35 | indicator-size | <length> | 4px | No | Dia… 36 | indicator-top\|left\|right\|bottom | <length> \| <percentage> | - | No | Relativ…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-container-swiper.md | 28 | indicator | boolean | true | No | Whether to enable the indicator. The d… 29 …er to enable the digital indicator. The default value is **false**.<br>The digital indicator takes… 30 …ether gesture operations are disabled on the indicator. If this attribute is set to **true**, the … 44 | indicator-color | <color> | - | No … 45 | indicator-selected-color | <color> | \#ff007dff | No … 46 | indicator-size | <length> | 4px | No … 47 | indicator-top\|left\|right\|bottom | <length> \| <percentage> | - | No | R… 111 indicator-color: #cf2411; 112 indicator-size: 14px; 113 indicator-bottom: 20px; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_modifier.cpp | 115 RectF indicator; in PaintIndicator() local 117 indicator.SetHeight(indicatorHeight_->Get()); in PaintIndicator() 119 indicator.SetHeight(tabTheme->GetSubTabIndicatorHeight().ConvertToPx()); in PaintIndicator() 121 indicator.SetWidth(indicatorWidth_->Get()); in PaintIndicator() 122 indicator.SetLeft(indicatorLeft_->Get()); in PaintIndicator() 124 indicator.SetTop(indicatorTop_->Get() + indicatorMarginTop_->Get()); in PaintIndicator() 126 indicator.SetTop(indicatorTop_->Get()); in PaintIndicator() 135 …RSRoundRect rect(ToRSRect(indicator), indicatorBorderRadius_->Get(), indicatorBorderRadius_->Get()… in PaintIndicator() 138 canvas.DrawRect(ToRSRect(indicator)); in PaintIndicator()
|
H A D | tab_bar_layout_property.cpp | 38 RectF indicator = geometryNode->GetFrameRect(); in GetIndicatorRect() local 44 indicator.SetLeft(indicator.GetX() + childColumnRect.GetX()); in GetIndicatorRect() 45 indicator.SetTop(indicator.Bottom() + childColumnRect.GetY()); in GetIndicatorRect() 46 return indicator; in GetIndicatorRect()
|
H A D | tab_content_model.h | 70 bool operator==(const IndicatorStyle& indicator) const 72 return (color == indicator.color) && (height == indicator.height) && 73 (width == indicator.width) && (borderRadius == indicator.borderRadius) 74 && (marginTop == indicator.marginTop); 133 virtual void SetIndicator(const IndicatorStyle& indicator) = 0;
|
H A D | tab_content_node.cpp | 106 auto indicator = JsonUtil::Create(true); in ToJsonValue() local 108 indicator->Put("color", indicatorStyle.color.ColorToString().c_str()); in ToJsonValue() 109 indicator->Put("height", indicatorStyle.height.ToString().c_str()); in ToJsonValue() 110 indicator->Put("width", indicatorStyle.width.ToString().c_str()); in ToJsonValue() 111 indicator->Put("borderRadius", indicatorStyle.borderRadius.ToString().c_str()); in ToJsonValue() 112 indicator->Put("marginTop", indicatorStyle.marginTop.ToString().c_str()); in ToJsonValue() 113 tabBar->Put("indicator", indicator); in ToJsonValue()
|
H A D | tab_bar_pattern.cpp | 778 if (indicator <= 0) { in OnKeyEvent() 781 indicator -= 1; in OnKeyEvent() 782 FocusIndexChange(indicator); in OnKeyEvent() 791 indicator += 1; in OnKeyEvent() 792 FocusIndexChange(indicator); in OnKeyEvent() 796 indicator = 0; in OnKeyEvent() 797 FocusIndexChange(indicator); in OnKeyEvent() 1161 if (indicator > totalCount - 1 || indicator < 0) { in OnDirtyLayoutWrapperSwap() 1162 indicator = 0; in OnDirtyLayoutWrapperSwap() 1187 animationTargetIndex_.value_or(indicator) != indicator) { in OnDirtyLayoutWrapperSwap() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-container-swiper.md | 27 | indicator | boolean | true | 否 | 是否启用导航点指示器,默认true。 … 28 | digital<sup>5+</sup> | boolean | false | 否 | 是否启用数字导航点,默认为false。<br/>必须设置indicator时… 43 | indicator-color | <color> | - | 否 … 44 | indicator-selected-color | <color> | \#ff007dff | 否 … 45 | indicator-size | <length> | 4px | 否 … 46 | indicator-top\|left\|right\|bottom | <length> \| <percentage> | - … 77 …<swiper class="swiper" id="swiper" index="0" indicator="true" loop="true" digital="false" cachedsi… 110 indicator-color: #cf2411; 111 indicator-size: 14px; 112 indicator-bottom: 20px; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-rating.md | 280 if (!config.indicator) { 294 if (!config.indicator) { 301 if (!config.indicator) { 315 if (!config.indicator) { 322 if (!config.indicator) { 336 if (!config.indicator) { 343 if (!config.indicator) { 357 if (!config.indicator) { 364 if (!config.indicator) { 378 if (!config.indicator) { [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-common-components-progress-indicator.md | 9 You can create a progress indicator by calling the following API: 16 …**total** indicates the total progress, and **type** indicates the style of the progress indicator. 19 …4, total: 100, type: ProgressType.Linear }) // Create a linear progress indicator whose total prog… 48 …// The progress indicator in the indeterminate ring style on the left: Retain its default settings… 50 // The right progress indicator in the indeterminate ring style on the right. 77 …// The progress indicator in the eclipse style on the left: Retain its default settings for the fo… 79 // The progress indicator in the eclipse style on the right: Set its foreground color to gray. 88 …>- At both ends, the progress indicator in the capsule style works in a same manner as that in th… 89 …>- In the middle part of the capsule, the progress indicator works in a same manner as the linear… 91 …>- If the height is greater than the width, the progress indicator adaptively switches to the ver… [all …]
|
H A D | arkts-layout-development-create-looping.md | 84 With the **indicator** attribute, you can set the position of the navigation point indicator relati… 86 - Example of using the navigation point indicator in its default style: 113  115 - Example of customizing the style of the navigation dots indicator, with the diameter of 30 vp, le… 123 .indicator( 172 …age switching modes: using the swipe gesture, using the navigation dots indicator, and using the c… 202 .indicator(true) 236 .indicator(true) 250 .indicator(true) 289 .indicator(true) [all …]
|
H A D | ui-js-components-swiper.md | 72 <swiper index="1" autoplay="true" interval="2000" indicator="true" digital="true" duration="500" 120 > - The **digital** attribute takes effect only when the **indicator** attribute is set to **true**. 129 …e indicator's size (**indicator-size**), color (**indicator-color**), relative position (**indicat… 164 indicator-color: white; 165 indicator-selected-color: blue; 166 indicator-size: 40px; 167 indicator-top: 100px; 296 <swiper duration="500" indicator="false" id="swiper" onchange="change">
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tab_bar_modifier_test_ng.cpp | 210 IndicatorStyle indicator; variable 211 tabBarPattern_->SetIndicatorStyle(indicator, 0); 240 IndicatorStyle indicator; variable 241 tabBarPattern_->SetIndicatorStyle(indicator, 0); 270 IndicatorStyle indicator; variable 271 tabBarPattern_->SetIndicatorStyle(indicator, 0); 298 IndicatorStyle indicator; variable 299 tabBarPattern_->SetIndicatorStyle(indicator, 0); 472 IndicatorStyle indicator; variable 473 tabBarPattern_->SetIndicatorStyle(indicator, 0); [all …]
|
H A D | tab_bar_test_ng.cpp | 155 IndicatorStyle indicator; variable 156 tabBarPattern_->SetIndicatorStyle(indicator, 0); 158 tabBarPattern_->SetIndicatorStyle(indicator, 1); 160 tabBarPattern_->SetIndicatorStyle(indicator, 0); 982 IndicatorStyle indicator; variable 983 tabBarPattern_->SetIndicatorStyle(indicator, 0); 1172 IndicatorStyle indicator; variable 1181 tabBarPattern_->indicatorStyles_.push_back(indicator); 1184 indicator.width.SetValue(1.0); 1186 EXPECT_EQ(indicator.width.Value(), 0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | swiper_model_impl.cpp | 30 auto indicator = AceType::MakeRefPtr<OHOS::Ace::SwiperIndicator>(); in Create() local 33 indicator->InitStyle(indicatorTheme); in Create() 37 component->SetIndicator(indicator); in Create() 242 auto indicator = swiper->GetIndicator(); in SetIndicatorStyle() local 243 if (!indicator) { in SetIndicatorStyle() 248 indicator->SetLeft(swiperParameters.dimLeft.value()); in SetIndicatorStyle() 251 indicator->SetTop(swiperParameters.dimTop.value()); in SetIndicatorStyle() 254 indicator->SetRight(swiperParameters.dimRight.value()); in SetIndicatorStyle() 260 indicator->SetSize(swiperParameters.itemWidth.value()); in SetIndicatorStyle() 263 indicator->SetSize(swiperParameters.itemHeight.value()); in SetIndicatorStyle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/ |
H A D | native_type.h | 2853 void OH_ArkUI_SwiperIndicator_Dispose(ArkUI_SwiperIndicator* indicator); 2871 float OH_ArkUI_SwiperIndicator_GetStartPosition(ArkUI_SwiperIndicator* indicator); 2889 float OH_ArkUI_SwiperIndicator_GetTopPosition(ArkUI_SwiperIndicator* indicator); 2907 float OH_ArkUI_SwiperIndicator_GetEndPosition(ArkUI_SwiperIndicator* indicator); 2925 float OH_ArkUI_SwiperIndicator_GetBottomPosition(ArkUI_SwiperIndicator* indicator); 2943 float OH_ArkUI_SwiperIndicator_GetItemWidth(ArkUI_SwiperIndicator* indicator); 2961 float OH_ArkUI_SwiperIndicator_GetItemHeight(ArkUI_SwiperIndicator* indicator); 2979 float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth(ArkUI_SwiperIndicator* indicator); 3015 int32_t OH_ArkUI_SwiperIndicator_GetMask(ArkUI_SwiperIndicator* indicator); 3033 uint32_t OH_ArkUI_SwiperIndicator_GetColor(ArkUI_SwiperIndicator* indicator); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-container-swiper.md | 20 | indicator | boolean | true | 否 | 是否启用导航点指示器,默认true。 | 21 | digital | boolean | false | 否 | 是否启用数字导航点,默认为false。<br/>必须设置indicator时才能生效数字导航点。 | 33 | indicator-color | <color> | - | 否 | 导航点… 34 | indicator-selected-color | <color> | - | 否 | 导航点… 35 | indicator-size | <length> | 4px | 否 | 导航点… 36 | indicator-top\|left\|right\|bottom | <length> \| <percentage> | - | 否 …
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-swiper.md | 114 ### indicator subsection 116 indicator(value: DotIndicator | DigitIndicator | boolean) 118 Sets the style of the navigation point indicator. 285 Sets the style of the navigation point indicator. 350 Sets the arrow style of the navigation point indicator. 433 …ets whether the navigation point indicator is interactive. The value **true** means that the navig… 1367 .indicator( // Set the style of the navigation point indicator. 1479 .indicator(Indicator.digit() // Set the digit-style navigation point indicator. 1567 .indicator( // Set the style of the navigation point indicator. 1634 .indicator(false) [all …]
|
H A D | ts-basic-components-rating.md | 154 | indicator | boolean | No| No| Whether the component is used only as an indicator.<br>Default valu… 302 if (!config.indicator) { 316 if (!config.indicator) { 323 if (!config.indicator) { 337 if (!config.indicator) { 344 if (!config.indicator) { 358 if (!config.indicator) { 365 if (!config.indicator) { 379 if (!config.indicator) { 386 if (!config.indicator) { [all …]
|
H A D | ts-basic-components-progress.md | 3 The **Progress** component represents a progress indicator that displays the progress of content lo… 18 Creates a progress indicator. 30 …s](#progressoptionstype)| Yes| Options of the progress indicator, which vary by progress indicator… 55 | Linear | Linear style. Since API version 9, the progress indicator adaptively swi… 59 …indicator works in a same manner as the eclipse style. In the middle part of the capsule, the prog… 75 …indicator works in a same manner as the eclipse style. In the middle part of the capsule, the prog… 121 Sets the foreground color of the progress indicator. 271 | strokeWidth | [Length](ts-types.md#length) | No | Stroke width of the progress indicator. It c… 379 This example shows the effect of visual attributes of the ring style progress indicator. 407 This example shows the animation effect of the ring style progress indicator. [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-layout-development-create-looping.md | 82 Swiper提供了默认的导航点样式和导航点箭头样式,导航点默认显示在Swiper下方居中位置,开发者也可以通过indicator属性自定义导航点的位置和样式,导航点箭头默认不显示。 84 通过indicator属性,开发者可以设置导航点相对于Swiper组件上下左右四个方位的位置,同时也可以设置每个导航点的尺寸、颜色、蒙层和被选中导航点的颜色。 113  123 .indicator( 202 .indicator(true) 236 .indicator(true) 250 .indicator(true) 289 .indicator(true) 334 .indicator(false)
|
H A D | ui-js-components-swiper.md | 72 <swiper index="1" autoplay="true" interval="2000" indicator="true" digital="true" duration="500" 120 > - 设置indicator(是否启用导航点指示器)属性为true时digital(是否启用数字导航点)属性才会生效。 129 设置swiper组件的宽高,导航点指示器的直径大小(indicator-size)、颜色(indicator-color)、相对位置(indicator-top)及选中时的颜色(indicator-… 164 indicator-color: white; 165 indicator-selected-color: blue; 166 indicator-size: 40px; 167 indicator-top: 100px; 296 <swiper duration="500" indicator="false" id="swiper" onchange="change">
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_swiper_modifier.cpp | 305 DimensionUnit unit = static_cast<DimensionUnit>(indicator->dimUnit); in GetDotIndicatorProps() 312 CalcDimension dimPosition = Dimension(indicator->itemWidth.value, unit); in GetDotIndicatorProps() 315 dimPosition = Dimension(indicator->itemHeight.value, unit); in GetDotIndicatorProps() 318 dimPosition = Dimension(indicator->selectedItemWidth.value, unit); in GetDotIndicatorProps() 321 dimPosition = Dimension(indicator->selectedItemHeight.value, unit); in GetDotIndicatorProps() 331 …indicator->colorValue.isSet == 1 ? Color(indicator->colorValue.value) : swiperIndicatorTheme->GetC… in GetDotIndicatorProps() 335 indicator->maxDisplayCount.value : NUM_0; in GetDotIndicatorProps() 770 int32_t indicator = StringUtils::StringToInt(res[INDICATOR_VALUE]); in SetSwiperIndicator() local 771 bool showIndicator = indicator == 1 ? true : false; in SetSwiperIndicator() 999 CHECK_NULL_VOID(indicator); in SetSwiperIndicatorStyle() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | native__type_8h.md | 248 …_u_i___native_module.md#arkui_swiperindicator) \*indicator) | Disposes of the navigation point ind… 252 …ative_module.md#arkui_swiperindicator) \*indicator) | Obtains the distance between a navigation po… 254 …ative_module.md#arkui_swiperindicator) \*indicator) | Obtains the distance between a navigation po… 257 …tive_module.md#arkui_swiperindicator) \*indicator, float value) | Sets the width of a navigation p… 258 …___native_module.md#arkui_swiperindicator) \*indicator) | Obtains the width of a navigation point … 259 …tive_module.md#arkui_swiperindicator) \*indicator, float value) | Sets the height of a navigation … 260 …___native_module.md#arkui_swiperindicator) \*indicator) | Obtains the height of a navigation point… 266 …_module.md#arkui_swiperindicator) \*indicator) | Obtains whether the mask is enabled for a navigat… 267 …ive_module.md#arkui_swiperindicator) \*indicator, uint32_t color) | Sets the color of a navigation… 268 …___native_module.md#arkui_swiperindicator) \*indicator) | Obtains the color of a navigation point … [all …]
|