harmony 鸿蒙drawable_descriptor.h
drawable_descriptor.h
Overview
Declares the APIs of NativeDrawableDescriptor.
Library: libace_ndk.z.so
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 12
Related module: ArkUI_NativeModule
Summary
Types
Name | Description |
---|---|
typedef struct ArkUI_DrawableDescriptor ArkUI_DrawableDescriptor | Defines a struct for the DrawableDescriptor object. |
typedef struct OH_PixelmapNative * OH_PixelmapNativeHandle | Defines a struct for the pointer to an OH_PixelmapNative object. |
Functions
Name | Description |
---|---|
ArkUI_DrawableDescriptor * OH_ArkUI_DrawableDescriptor_CreateFromPixelMap (OH_PixelmapNativeHandle pixelMap) | Creates a DrawableDescriptor object with a PixelMap object. |
ArkUI_DrawableDescriptor * OH_ArkUI_DrawableDescriptor_CreateFromAnimatedPixelMap (OH_PixelmapNativeHandle *array, int32_t size) | Creates a DrawableDescriptor object with an array of PixelMap objects. |
void OH_ArkUI_DrawableDescriptor_Dispose (ArkUI_DrawableDescriptor *drawableDescriptor) | Disposes of the pointer to a DrawableDescriptor object. |
OH_PixelmapNativeHandle OH_ArkUI_DrawableDescriptor_GetStaticPixelMap (ArkUI_DrawableDescriptor *drawableDescriptor) | Obtains the pointer to a PixelMap object. |
OH_PixelmapNativeHandle * OH_ArkUI_DrawableDescriptor_GetAnimatedPixelMapArray (ArkUI_DrawableDescriptor *drawableDescriptor) | Obtains an array of PixelMap objects for playing an animation. |
int32_t OH_ArkUI_DrawableDescriptor_GetAnimatedPixelMapArraySize (ArkUI_DrawableDescriptor *drawableDescriptor) | Obtains an array of PixelMap objects for playing an animation. |
void OH_ArkUI_DrawableDescriptor_SetAnimationDuration (ArkUI_DrawableDescriptor *drawableDescriptor, int32_t duration) | Sets the total playback duration for a pixel map image array. |
int32_t OH_ArkUI_DrawableDescriptor_GetAnimationDuration (ArkUI_DrawableDescriptor *drawableDescriptor) | Obtains the total playback duration for a pixel map image array. |
void OH_ArkUI_DrawableDescriptor_SetAnimationIteration (ArkUI_DrawableDescriptor *drawableDescriptor, int32_t iteration) | Sets the number of times that a pixel map image array is played. |
int32_t OH_ArkUI_DrawableDescriptor_GetAnimationIteration (ArkUI_DrawableDescriptor *drawableDescriptor) | Obtains the number of times that a pixel map image array is played. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦