ohos_arkui_binding/component/built_in_component/
loading_progress.rs1impl super::LoadingProgress {
5 pub fn set_loading_progress_color<T: Into<crate::ArkUINodeAttributeItem>>(
6 &self,
7 value: T,
8 ) -> crate::ArkUIResult<()> {
9 <Self as crate::ArkUICommonAttribute>::set_attribute(
10 self,
11 crate::ArkUINodeAttributeType::LoadingProgressColor,
12 value.into(),
13 )
14 }
15
16 pub fn get_loading_progress_color(&self) -> crate::ArkUIResult<crate::ArkUINodeAttributeItem> {
17 <Self as crate::ArkUICommonAttribute>::get_attribute(
18 self,
19 crate::ArkUINodeAttributeType::LoadingProgressColor,
20 )
21 }
22
23 pub fn set_loading_progress_enable_loading<T: Into<crate::ArkUINodeAttributeItem>>(
24 &self,
25 value: T,
26 ) -> crate::ArkUIResult<()> {
27 <Self as crate::ArkUICommonAttribute>::set_attribute(
28 self,
29 crate::ArkUINodeAttributeType::LoadingProgressEnableLoading,
30 value.into(),
31 )
32 }
33
34 pub fn get_loading_progress_enable_loading(
35 &self,
36 ) -> crate::ArkUIResult<crate::ArkUINodeAttributeItem> {
37 <Self as crate::ArkUICommonAttribute>::get_attribute(
38 self,
39 crate::ArkUINodeAttributeType::LoadingProgressEnableLoading,
40 )
41 }
42}
43