ArkUI_NodeAttributeType (Information Display Component Attribute)
enum ArkUI_NodeAttributeType
Overview
Enumerates the attributes that can be set by ArkUI on the native side for information display components including LoadingProgress and Progress.
Since: 12
Related module: ArkUI_NativeModule
Header file: native_node.h
NODE_LOADING_PROGRESS_COLOR
NODE_LOADING_PROGRESS_COLOR = MAX_NODE_SCOPE_NUM * ARKUI_NODE_LOADING_PROGRESS = 6000
Foreground color of the loading progress bar. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].u32 | Foreground color, in 0xARGB format. For example, 0xFFFF0000 indicates red. |
Returns
| Type | Description |
|---|---|
| .value[0].u32 | Foreground color, in 0xARGB format. |
NODE_LOADING_PROGRESS_ENABLE_LOADING
NODE_LOADING_PROGRESS_ENABLE_LOADING = 6001
Whether to show the loading animation for the LoadingProgress component. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].i32 | Whether to show the loading animation. true to show; false otherwise. The default value is true. |
Returns
| Type | Description |
|---|---|
| .value[0].i32 | Whether the loading animation is shown. The value 1 means that the loading animation is shown, and 0 means the opposite. |
NODE_PROGRESS_VALUE
NODE_PROGRESS_VALUE = MAX_NODE_SCOPE_NUM * ARKUI_NODE_PROGRESS = 10000
Current value of the progress indicator. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].f32 | Current value of the progress indicator. |
Returns
| Type | Description |
|---|---|
| .value[0].f32 | Current value of the progress indicator. |
NODE_PROGRESS_TOTAL
NODE_PROGRESS_TOTAL = 10001
Total value of the progress indicator. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].f32 | Total value of the progress indicator. |
Returns
| Type | Description |
|---|---|
| .value[0].f32 | Total value of the progress indicator. |
NODE_PROGRESS_COLOR
NODE_PROGRESS_COLOR = 10002
Color for the progress value on the progress indicator. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].u32 | Color, in 0xARGB format. For example, 0xFFFF0000 indicates red. |
Returns
| Type | Description |
|---|---|
| .value[0].u32 | Color, in 0xARGB format. |
NODE_PROGRESS_TYPE
NODE_PROGRESS_TYPE = 10003
Type of the progress indicator. This attribute can be set, reset, and obtained as required through APIs.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 12
Parameters
| Name | Description |
|---|---|
| .value[0].i32 | Type of the progress indicator, specified using the ArkUI_ProgressType enum. The default value is ARKUI_PROGRESS_TYPE_LINEAR. |
Returns
| Type | Description |
|---|---|
| .value[0].i32 | Type of the progress indicator, specified using the ArkUI_ProgressType enum. |
NODE_PROGRESS_LINEAR_STYLE
NODE_PROGRESS_LINEAR_STYLE = 10004
Linear progress indicator style. This attribute can be set, reset, and obtained as required through APIs. Note that the settings are effective only if the progress indicator type is linear.
The format of the ArkUI_AttributeItem parameter for setting the attribute and the format of the return value ArkUI_AttributeItem are as follows.
Since: 15
Parameters
| Name | Description |
|---|---|
| .object | ArkUI_ProgressLinearStyleOption object that defines the component style. |
Returns
| Type | Description |
|---|---|
| .object | ArkUI_ProgressLinearStyleOption object that obtains the component style. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem