harmony 鸿蒙native_type.h
native_type.h
Overview
Defines the common types for the native module.
Library: libace_ndk.z.so
File to include:
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 12
Related module: ArkUI_NativeModule
Summary
Structs
Name | Description |
---|---|
struct ArkUI_ContextCallback | Defines event callback. |
union ArkUI_NumberValue | Provides the number types of ArkUI in the native code. |
struct ARKUI_TextPickerRangeContent | Defines the input structure of the single-column text picker with image resources. |
struct ARKUI_TextPickerCascadeRangeContent | Defines the input structure of the interconnected multi-column text picker. |
struct ArkUI_ColorStop | Defines a gradient color stop. |
struct ArkUI_Rect | Defines a mask area. |
struct ArkUI_IntSize | Describes the width and height of a component. |
struct ArkUI_IntOffset | Describes the position of a component. |
struct ArkUI_Margin | Describes the margins of a component. |
struct ArkUI_TranslationOptions | Defines the translation options for component transition. |
struct ArkUI_ScaleOptions | Defines the scaling options for component transition. |
struct ArkUI_RotationOptions | Defines the rotation options for component transition. |
Types
Name | Description |
---|---|
typedef struct ArkUI_LayoutConstraint ArkUI_LayoutConstraint | Defines the size constraints of a component during component layout. |
typedef struct ArkUI_DrawContext ArkUI_DrawContext | Defines the component drawing context. |
typedef struct ArkUI_Node * ArkUI_NodeHandle | Defines the pointer to the ArkUI native component object. |
typedef struct ArkUI_NativeDialog * ArkUI_NativeDialogHandle | Defines the handle to the custom dialog box controller of ArkUI on the native side. |
typedef struct ArkUI_WaterFlowSectionOption ArkUI_WaterFlowSectionOption | Defines the water flow section configuration. |
typedef struct ArkUI_ListItemSwipeActionItem ArkUI_ListItemSwipeActionItem | Defines the item configuration for ListItemSwipeActionOption. |
typedef struct ArkUI_ListItemSwipeActionOption ArkUI_ListItemSwipeActionOption | Defines the configuration for ListItemSwipeActionOption. |
typedef struct ArkUI_Context * ArkUI_ContextHandle | Defines the handle to the ArkUI native UI context. |
typedef struct ArkUI_NodeContent * ArkUI_NodeContentHandle | Defines the handle to the ArkUI NodeContent instance on the native side. |
typedef struct ArkUI_AlignmentRuleOption ArkUI_AlignmentRuleOption | Defines the alignment rule in the relative container. |
typedef struct ArkUI_GuidelineOption ArkUI_GuidelineOption | Defines the ID, direction, and position of a guideline. |
typedef struct ArkUI_BarrierOption ArkUI_BarrierOption | Defines the ID, direction, and referenced component of a barrier. |
typedef struct ArkUI_ImageAnimatorFrameInfo ArkUI_ImageAnimatorFrameInfo | Defines the image frame information. |
typedef struct ArkUI_ListChildrenMainSize ArkUI_ListChildrenMainSize | Defines the ChildrenMainSize information of the List component. |
typedef struct ArkUI_AccessibilityState ArkUI_AccessibilityState | Defines a struct for the component accessibility state. |
typedef struct ArkUI_AccessibilityValue ArkUI_AccessibilityValue | Defines a struct for the component accessibility value. |
typedef struct ArkUI_SystemFontStyleEvent ArkUI_SystemFontStyleEvent | Defines a struct for the system font style event. |
typedef struct ArkUI_CustomSpanMeasureInfo ArkUI_CustomSpanMeasureInfo | Defines a struct for the measurement information of a custom span. |
typedef struct ArkUI_CustomSpanMetrics ArkUI_CustomSpanMetrics | Defines a struct for the measurement metrics of a custom span. |
typedef struct ArkUI_CustomSpanDrawInfo ArkUI_CustomSpanDrawInfo | Defines a struct for the drawing information of a custom span. |
typedef struct ArkUI_SwiperIndicator ArkUI_SwiperIndicator | Defines the navigation indicator style of the Swiper component. |
typedef struct ArkUI_StyledString_Descriptor ArkUI_StyledString_Descriptor | Defines a struct for the styled string descriptor object supported by the text component. |
typedef struct ArkUI_SnapshotOptions ArkUI_LayoutConstraint | Defines a struct for the component snapshot options. |
typedef struct ArkUI_VisibleAreaEventOptions ArkUI_VisibleAreaEventOptions | Defines the parameters for visible area change events. |
Enums
Functions
Name | Description |
---|---|
ArkUI_LayoutConstraint * OH_ArkUI_LayoutConstraint_Create () | Creates a size constraint. |
ArkUI_LayoutConstraint * OH_ArkUI_LayoutConstraint_Copy (const ArkUI_LayoutConstraint *Constraint) | Performs a deep copy of a size constraint. |
void * OH_ArkUI_LayoutConstraint_Dispose (ArkUI_LayoutConstraint *Constraint) | Disposes of the pointer to a size constraint. |
int32_t OH_ArkUI_LayoutConstraint_GetMaxWidth (const ArkUI_LayoutConstraint *Constraint) | Obtains the maximum width for a size constraint, in px. |
int32_t OH_ArkUI_LayoutConstraint_GetMinWidth (const ArkUI_LayoutConstraint *Constraint) | Obtains the minimum width for a size constraint, in px. |
int32_t OH_ArkUI_LayoutConstraint_GetMaxHeight (const ArkUI_LayoutConstraint *Constraint) | Obtains the maximum height for a size constraint, in px. |
int32_t OH_ArkUI_LayoutConstraint_GetMinHeight (const ArkUI_LayoutConstraint *Constraint) | Obtains the minimum height for a size constraint, in px. |
int32_t OH_ArkUI_LayoutConstraint_GetPercentReferenceWidth (const ArkUI_LayoutConstraint *Constraint) | Obtains the width percentage reference for a size constraint, in px. |
int32_t OH_ArkUI_LayoutConstraint_GetPercentReferenceHeight (const ArkUI_LayoutConstraint *Constraint) | Obtains the height percentage reference for a size constraint, in px. |
void OH_ArkUI_LayoutConstraint_SetMaxWidth (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the maximum width. |
void OH_ArkUI_LayoutConstraint_SetMinWidth (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the minimum width. |
void OH_ArkUI_LayoutConstraint_SetMaxHeight (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the maximum height. |
void OH_ArkUI_LayoutConstraint_SetMinHeight (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the minimum height. |
void OH_ArkUI_LayoutConstraint_SetPercentReferenceWidth (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the width percentage reference. |
void OH_ArkUI_LayoutConstraint_SetPercentReferenceHeight (ArkUI_LayoutConstraint *Constraint, int32_t value) | Sets the height percentage reference. |
void * OH_ArkUI_DrawContext_GetCanvas (ArkUI_DrawContext *context) | Obtains the pointer to a canvas for drawing, which can be converted into the OH_Drawing_Canvas in the Drawing module. |
ArkUI_IntSize OH_ArkUI_DrawContext_GetSize (ArkUI_DrawContext *context) | Obtains the size of a drawing area. |
ArkUI_WaterFlowSectionOption * OH_ArkUI_WaterFlowSectionOption_Create () | Creates a water flow section configuration. |
void OH_ArkUI_WaterFlowSectionOption_Dispose (ArkUI_WaterFlowSectionOption *option) | Disposes of the pointer to a water flow section configuration. |
void OH_ArkUI_WaterFlowSectionOption_SetSize (ArkUI_WaterFlowSectionOption *option, int32_t size) | Sets the array length for a water flow section configuration. |
int32_t OH_ArkUI_WaterFlowSectionOption_GetSize (ArkUI_WaterFlowSectionOption *option) | Sets the array length for a water flow section configuration. |
void OH_ArkUI_WaterFlowSectionOption_SetItemCount (ArkUI_WaterFlowSectionOption *option, int32_t index, int32_t itemCount) | Sets the number of items in a water flow section. |
int32_t OH_ArkUI_WaterFlowSectionOption_GetItemCount (ArkUI_WaterFlowSectionOption *option, int32_t index) | Obtains the number of items in the water flow section that matches the specified index. |
void OH_ArkUI_WaterFlowSectionOption_SetCrossCount (ArkUI_WaterFlowSectionOption *option, int32_t index, int32_t crossCount) | Sets the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. |
int32_t OH_ArkUI_WaterFlowSectionOption_GetCrossCount (ArkUI_WaterFlowSectionOption *option, int32_t index) | Obtains the number of columns (in a vertical layout) or rows (in a horizontal layout) of a water flow. |
void OH_ArkUI_WaterFlowSectionOption_SetColumnGap (ArkUI_WaterFlowSectionOption *, int32_t index, float columnGap) | Sets the gap between columns in the specified water flow section. |
float OH_ArkUI_WaterFlowSectionOption_GetColumnGap (ArkUI_WaterFlowSectionOption *option, int32_t index) | Obtains the gap between columns in the water flow section that matches the specified index. |
void OH_ArkUI_WaterFlowSectionOption_SetRowGap (ArkUI_WaterFlowSectionOption *option, int32_t index, float rowGap) | Sets the gap between rows in the specified water flow section. |
float OH_ArkUI_WaterFlowSectionOption_GetRowGap (ArkUI_WaterFlowSectionOption *option, int32_t index) | Obtains the gap between rows in the water flow section that matches the specified index. |
void OH_ArkUI_WaterFlowSectionOption_SetMargin (ArkUI_WaterFlowSectionOption *option, int32_t index, float marginTop, float marginRight, float marginBottom, float marginLeft) | Sets the margins for the specified water flow section. |
ArkUI_Margin OH_ArkUI_WaterFlowSectionOption_GetMargin (ArkUI_WaterFlowSectionOption *option, int32_t index) | Obtains the margins of the water flow section that matches the specified index. |
void OH_ArkUI_WaterFlowSectionOption_RegisterGetItemMainSizeCallbackByIndex (ArkUI_WaterFlowSectionOption *option, int32_t index, float(*callback)(int32_t itemIndex)) | Obtains the main axis size of a specified item based on flowItemIndex through a water flow section configuration. |
void OH_ArkUI_WaterFlowSectionOption_RegisterGetItemMainSizeCallbackByIndexWithUserData (ArkUI_WaterFlowSectionOption *option, int32_t index, void *userData, float(*callback)(int32_t itemIndex, void *userData)) | Obtains the main axis size of a specified item based on flowItemIndex through a water flow section configuration. |
ArkUI_GuidelineOption * OH_ArkUI_GuidelineOption_Create (int32_t size) | Creates a guideline configuration for this RelativeContainer component. |
void OH_ArkUI_GuidelineOption_Dispose (ArkUI_GuidelineOption *guideline) | Disposes of a guideline configuration. |
void OH_ArkUI_GuidelineOption_SetId (ArkUI_GuidelineOption *guideline, const char *value, int32_t index) | Sets the ID of a guideline. |
void OH_ArkUI_GuidelineOption_SetDirection (ArkUI_GuidelineOption *guideline, ArkUI_Axis value, int32_t index) | Sets the direction of a guideline. |
void OH_ArkUI_GuidelineOption_SetPositionStart (ArkUI_GuidelineOption *guideline, float value, int32_t index) | Sets the distance between a guideline and the left or top of the container. |
void OH_ArkUI_GuidelineOption_SetPositionEnd (ArkUI_GuidelineOption *guideline, float value, int32_t index) | Sets the distance between a guideline and the right or bottom of the container. |
const char * OH_ArkUI_GuidelineOption_GetId (ArkUI_GuidelineOption *guideline, int32_t index) | Obtains the ID of a guideline. |
ArkUI_Axis OH_ArkUI_GuidelineOption_GetDirection (ArkUI_GuidelineOption *guideline, int32_t index) | Obtains the direction of a guideline. |
float OH_ArkUI_GuidelineOption_GetPositionStart (ArkUI_GuidelineOption *guideline, int32_t index) | Obtains the distance between a guideline and the left or top of the container. |
float OH_ArkUI_GuidelineOption_GetPositionEnd (ArkUI_GuidelineOption *guideline, int32_t index) | Obtains the distance between a guideline and the right or bottom of the container. |
ArkUI_BarrierOption * OH_ArkUI_BarrierOption_Create (int32_t size) | Creates a barrier configuration for this RelativeContainer component. |
void OH_ArkUI_BarrierOption_Dispose (ArkUI_BarrierOption *barrierStyle) | Disposes of a barrier configuration. |
void OH_ArkUI_BarrierOption_SetId (ArkUI_BarrierOption *barrierStyle, const char *value, int32_t index) | Sets the ID of a barrier. |
void OH_ArkUI_BarrierOption_SetDirection (ArkUI_BarrierOption *barrierStyle, ArkUI_BarrierDirection value, int32_t index) | Sets the direction of a barrier. |
void OH_ArkUI_BarrierOption_SetReferencedId (ArkUI_BarrierOption *barrierStyle, const char *value, int32_t index) | Sets the referenced components of a barrier. |
const char * OH_ArkUI_BarrierOption_GetId (ArkUI_BarrierOption *barrierStyle, int32_t index) | Obtains the ID of a barrier. |
ArkUI_BarrierDirection OH_ArkUI_BarrierOption_GetDirection (ArkUI_BarrierOption *barrierStyle, int32_t index) | Obtains the direction of a barrier. |
const char * OH_ArkUI_BarrierOption_GetReferencedId (ArkUI_BarrierOption *barrierStyle, int32_t index, int32_t referencedIndex) | Obtains the referenced components of a barrier. |
int32_t OH_ArkUI_BarrierOption_GetReferencedIdSize (ArkUI_BarrierOption *barrierStyle, int32_t index) | Obtains the number of referenced components of a barrier. |
ArkUI_AlignmentRuleOption * OH_ArkUI_AlignmentRuleOption_Create () | Creates an alignment rule configuration for this RelativeContainer component. |
void OH_ArkUI_AlignmentRuleOption_Dispose (ArkUI_AlignmentRuleOption *option) | Disposes of an alignment rule configuration of this RelativeContainer component. |
void OH_ArkUI_AlignmentRuleOption_SetStart (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_HorizontalAlignment alignment) | Sets the left alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetEnd (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_HorizontalAlignment alignment) | Sets the right alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetCenterHorizontal (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_HorizontalAlignment alignment) | Sets the horizontal center alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetTop (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_VerticalAlignment alignment) | Sets the top alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetBottom (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_VerticalAlignment alignment) | Sets the bottom alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetCenterVertical (ArkUI_AlignmentRuleOption *option, const char *id, ArkUI_VerticalAlignment alignment) | Sets the vertical center alignment parameters. |
void OH_ArkUI_AlignmentRuleOption_SetBiasHorizontal (ArkUI_AlignmentRuleOption *option, float horizontal) | Sets the bias value of the component in the horizontal direction under the anchor constraints. |
void OH_ArkUI_AlignmentRuleOption_SetBiasVertical (ArkUI_AlignmentRuleOption *option, float vertical) | Sets the bias value of the component in the vertical direction under the anchor constraints. |
const char * OH_ArkUI_AlignmentRuleOption_GetStartId (ArkUI_AlignmentRuleOption *option) | Obtains the ID in the left alignment parameters. |
ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetStartAlignment (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in left alignment parameters. |
const char * OH_ArkUI_AlignmentRuleOption_GetEndId (ArkUI_AlignmentRuleOption *option) | Obtains the ID in the right alignment parameters. |
ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetEndAlignment (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in right alignment parameters. |
const char * OH_ArkUI_AlignmentRuleOption_GetCenterIdHorizontal (ArkUI_AlignmentRuleOption *option) | Obtains the ID in horizontal center alignment parameters. |
ArkUI_HorizontalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentHorizontal (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in horizontal center alignment parameters. |
const char * OH_ArkUI_AlignmentRuleOption_GetTopId (ArkUI_AlignmentRuleOption *option) | Obtains the ID in top alignment parameters. |
ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetTopAlignment (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in top alignment parameters. |
const char * OH_ArkUI_AlignmentRuleOption_GetBottomId (ArkUI_AlignmentRuleOption *option) | Obtains the ID in bottom alignment parameters. |
ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetBottomAlignment (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in bottom alignment parameters. |
const char * OH_ArkUI_AlignmentRuleOption_GetCenterIdVertical (ArkUI_AlignmentRuleOption *option) | Obtains the ID in vertical center alignment parameters. |
ArkUI_VerticalAlignment OH_ArkUI_AlignmentRuleOption_GetCenterAlignmentVertical (ArkUI_AlignmentRuleOption *option) | Obtains the alignment mode in vertical center alignment parameters. |
float OH_ArkUI_AlignmentRuleOption_GetBiasHorizontal (ArkUI_AlignmentRuleOption *option) | Obtains the bias value in the horizontal direction. |
float OH_ArkUI_AlignmentRuleOption_GetBiasVertical (ArkUI_AlignmentRuleOption *option) | Obtains the bias value in the vertical direction. |
ArkUI_SwiperIndicator * OH_ArkUI_SwiperIndicator_Create (ArkUI_SwiperIndicatorType type) | Creates a navigation indicator for this Swiper component. |
void OH_ArkUI_SwiperIndicator_Dispose (ArkUI_SwiperIndicator *indicator) | Disposes of the navigation indicator of this Swiper component. |
void OH_ArkUI_SwiperIndicator_SetStartPosition (ArkUI_SwiperIndicator *indicator, float value) | Sets the distance between a navigation indicator and the left edge of the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetStartPosition (ArkUI_SwiperIndicator *indicator) | Obtains the distance between a navigation indicator and the left edge of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetTopPosition (ArkUI_SwiperIndicator *indicator, float value) | Sets the distance between a navigation indicator and the top edge of the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetTopPosition (ArkUI_SwiperIndicator *indicator) | Obtains the distance between a navigation indicator and the top edge of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetEndPosition (ArkUI_SwiperIndicator *indicator, float value) | Sets the distance between the navigation indicator and the right edge of the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetEndPosition (ArkUI_SwiperIndicator *indicator) | Obtains the distance between a navigation indicator and the right edge of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetBottomPosition (ArkUI_SwiperIndicator *indicator, float value) | Sets the distance between a navigation indicator and the bottom edge of the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetBottomPosition (ArkUI_SwiperIndicator *indicator) | Obtains the distance between a navigation indicator and the bottom edge of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetItemWidth (ArkUI_SwiperIndicator *indicator, float value) | Sets the width of a navigation indicator of the dot style for the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetItemWidth (ArkUI_SwiperIndicator *indicator) | Obtains the width of a navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetItemHeight (ArkUI_SwiperIndicator *indicator, float value) | Sets the height of a navigation indicator of the dot style for the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetItemHeight (ArkUI_SwiperIndicator *indicator) | Obtains the height of a navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetSelectedItemWidth (ArkUI_SwiperIndicator *indicator, float value) | Sets the width of the selected navigation indicator of the dot style for the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetSelectedItemWidth (ArkUI_SwiperIndicator *indicator) | Obtains the width of the selected navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetSelectedItemHeight (ArkUI_SwiperIndicator *indicator, float value) | Sets the height of the selected navigation indicator of the dot style for the Swiper component. |
float OH_ArkUI_SwiperIndicator_GetSelectedItemHeight (ArkUI_SwiperIndicator *indicator) | Obtains the height of the selected navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetMask (ArkUI_SwiperIndicator *indicator, int32_t mask) | Sets whether to enable the mask for a navigation indicator of the dot style for the Swiper component. |
int32_t OH_ArkUI_SwiperIndicator_GetMask (ArkUI_SwiperIndicator *indicator) | Obtains whether the mask is enabled for a navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetColor (ArkUI_SwiperIndicator *indicator, uint32_t color) | Sets the color of a navigation indicator of the dot style for the Swiper component. |
uint32_t OH_ArkUI_SwiperIndicator_GetColor (ArkUI_SwiperIndicator *indicator) | Obtains the color of a navigation indicator of the dot style of the Swiper component. |
void OH_ArkUI_SwiperIndicator_SetSelectedColor (ArkUI_SwiperIndicator *indicator, uint32_t selectedColor) | Sets the color of the selected navigation indicator of the dot style for the Swiper component. |
uint32_t OH_ArkUI_SwiperIndicator_GetSelectedColor (ArkUI_SwiperIndicator *indicator) | Obtains the color of the selected navigation indicator of the dot style of the Swiper component. |
int32_t OH_ArkUI_SwiperIndicator_SetMaxDisplayCount (ArkUI_SwiperIndicator *indicator, int32_t maxDisplayCount) | Sets the maximum number of dots for the navigation indicator of the dot style. |
int32_t OH_ArkUI_SwiperIndicator_GetMaxDisplayCount (ArkUI_SwiperIndicator *indicator) | Obtains the maximum number of dots for the navigation indicator of the dot style. |
ArkUI_ListItemSwipeActionItem * OH_ArkUI_ListItemSwipeActionItem_Create () | Creates a ListItemSwipeActionItem instance. |
void OH_ArkUI_ListItemSwipeActionItem_Dispose (ArkUI_ListItemSwipeActionItem *item) | Disposes of a ListItemSwipeActionItem instance. |
void OH_ArkUI_ListItemSwipeActionItem_SetContent (ArkUI_ListItemSwipeActionItem *item, ArkUI_NodeHandle node) | Sets the layout content for a ListItemSwipeActionItem instance. |
void OH_ArkUI_ListItemSwipeActionItem_SetActionAreaDistance (ArkUI_ListItemSwipeActionItem *item, float distance) | Sets the swipe distance threshold for deleting the list item. |
float OH_ArkUI_ListItemSwipeActionItem_GetActionAreaDistance (ArkUI_ListItemSwipeActionItem *item) | Obtains the swipe distance threshold for deleting the list item. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnEnterActionArea (ArkUI_ListItemSwipeActionItem *item, void(*callback)()) | Sets the callback invoked each time the list item enters the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnEnterActionAreaWithUserData (ArkUI_ListItemSwipeActionItem *item, void *userData, void(*callback)(void *userData)) | Sets the callback invoked each time the list item enters the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnAction (ArkUI_ListItemSwipeActionItem *item, void(*callback)()) | Sets the callback invoked when the list item is deleted while in the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnActionWithUserData (ArkUI_ListItemSwipeActionItem *item, void *userData, void(*callback)(void *userData)) | Sets the callback invoked when the list item is deleted while in the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnExitActionArea (ArkUI_ListItemSwipeActionItem *item, void(*callback)()) | Sets the callback invoked each time the list item exits the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnExitActionAreaWithUserData (ArkUI_ListItemSwipeActionItem *item, void *userData, void(*callback)(void *userData)) | Sets the callback invoked each time the list item exits the delete area. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnStateChange (ArkUI_ListItemSwipeActionItem *item, void(*callback)(ArkUI_ListItemSwipeActionState swipeActionState)) | Sets the callback invoked when the swipe state of the list item changes. |
void OH_ArkUI_ListItemSwipeActionItem_SetOnStateChangeWithUserData (ArkUI_ListItemSwipeActionItem *item, void *userData, void(*callback)(ArkUI_ListItemSwipeActionState swipeActionState, void *userData)) | Sets the callback invoked when the swipe state of the list item changes. |
ArkUI_ListItemSwipeActionOption * OH_ArkUI_ListItemSwipeActionOption_Create () | Creates a ListItemSwipeActionOption instance. |
void OH_ArkUI_ListItemSwipeActionOption_Dispose (ArkUI_ListItemSwipeActionOption *option) | Disposes of a ListItemSwipeActionOption instance. |
void OH_ArkUI_ListItemSwipeActionOption_SetStart (ArkUI_ListItemSwipeActionOption *option, ArkUI_ListItemSwipeActionItem *item) | Sets the layout content for the left edge (for a vertical layout) or top edge (for a horizontal layout) of a ListItemSwipeActionOption instance. |
void OH_ArkUI_ListItemSwipeActionOption_SetEnd (ArkUI_ListItemSwipeActionOption *option, ArkUI_ListItemSwipeActionItem *item) | Sets the layout content for the right edge (for a vertical layout) or bottom edge (for a horizontal layout) of a ListItemSwipeActionItem instance. |
void OH_ArkUI_ListItemSwipeActionOption_SetEdgeEffect (ArkUI_ListItemSwipeActionOption *option, ArkUI_ListItemSwipeEdgeEffect edgeEffect) | Sets the edge effect used when the boundary of the scrolling area is reached. |
int32_t OH_ArkUI_ListItemSwipeActionOption_GetEdgeEffect (ArkUI_ListItemSwipeActionOption *option) | Obtains the edge effect used when the boundary of the scrolling area is reached. |
void OH_ArkUI_ListItemSwipeActionOption_SetOnOffsetChange (ArkUI_ListItemSwipeActionOption *option, void(*callback)(float offset)) | Sets the callback invoked when the scroll offset changes. |
void OH_ArkUI_ListItemSwipeActionOption_SetOnOffsetChangeWithUserData (ArkUI_ListItemSwipeActionOption *option, void *userData, void(*callback)(float offset, void *userData)) | Sets the callback invoked when the scroll offset changes. |
ArkUI_AccessibilityState * OH_ArkUI_AccessibilityState_Create (void) | Creates an accessibility state. |
void OH_ArkUI_AccessibilityState_Dispose (ArkUI_AccessibilityState *state) | Disposes of the pointer to an accessibility state. |
void OH_ArkUI_AccessibilityState_SetDisabled (ArkUI_AccessibilityState *state, int32_t isDisabled) | Sets whether an accessibility state is disabled. |
int32_t OH_ArkUI_AccessibilityState_IsDisabled (ArkUI_AccessibilityState *state) | Obtains whether an accessibility state is disabled. |
void OH_ArkUI_AccessibilityState_SetSelected (ArkUI_AccessibilityState *state, int32_t isSelected) | Sets whether an accessibility state is selected. |
int32_t OH_ArkUI_AccessibilityState_IsSelected (ArkUI_AccessibilityState *state) | Obtains whether an accessibility state is selected. |
void OH_ArkUI_AccessibilityState_SetCheckedState (ArkUI_AccessibilityState *state, int32_t checkedState) | Sets the check box state of an accessibility state. |
int32_t OH_ArkUI_AccessibilityState_GetCheckedState (ArkUI_AccessibilityState *state) | Obtains the check box state of an accessibility state. |
ArkUI_AccessibilityValue * OH_ArkUI_AccessibilityValue_Create (void) | Creates an AccessibilityValue instance. |
void OH_ArkUI_AccessibilityValue_Dispose (ArkUI_AccessibilityValue *value) | Disposes of the pointer to an AccessibilityValue instance. |
void OH_ArkUI_AccessibilityValue_SetMin (ArkUI_AccessibilityValue *value, int32_t min) | Sets the minimum accessibility value. |
int32_t OH_ArkUI_AccessibilityValue_GetMin (ArkUI_AccessibilityValue *value) | Obtains the minimum accessibility value. |
void OH_ArkUI_AccessibilityValue_SetMax (ArkUI_AccessibilityValue *value, int32_t max) | Sets the maximum accessibility value. |
int32_t OH_ArkUI_AccessibilityValue_GetMax (ArkUI_AccessibilityValue *value) | Obtains the maximum accessibility value. |
void OH_ArkUI_AccessibilityValue_SetCurrent (ArkUI_AccessibilityValue *value, int32_t current) | Sets the current accessibility value. |
int32_t OH_ArkUI_AccessibilityValue_GetCurrent (ArkUI_AccessibilityValue *value) | Obtains the current accessibility value. |
void OH_ArkUI_AccessibilityValue_SetText (ArkUI_AccessibilityValue *value, const char *text) | Sets the text description of an AccessibilityValue instance. |
const char * OH_ArkUI_AccessibilityValue_GetText (ArkUI_AccessibilityValue *value) | Obtains the text description of an AccessibilityValue instance. |
ArkUI_ImageAnimatorFrameInfo * OH_ArkUI_ImageAnimatorFrameInfo_CreateFromString (char *src) | Creates an image frame information object based on an image path, with the image format being SVG, PNG, or JPG. |
ArkUI_ImageAnimatorFrameInfo * OH_ArkUI_ImageAnimatorFrameInfo_CreateFromDrawableDescriptor (ArkUI_DrawableDescriptor *drawable) | Creates an image frame information object based on a DrawableDescriptor object, with the image format being Resource or PixelMap. |
void OH_ArkUI_ImageAnimatorFrameInfo_Dispose (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Disposes of the pointer to an image frame information object. |
void OH_ArkUI_ImageAnimatorFrameInfo_SetWidth (ArkUI_ImageAnimatorFrameInfo *imageInfo, int32_t width) | Sets the image width. |
int32_t OH_ArkUI_ImageAnimatorFrameInfo_GetWidth (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Obtains the image width. |
void OH_ArkUI_ImageAnimatorFrameInfo_SetHeight (ArkUI_ImageAnimatorFrameInfo *imageInfo, int32_t height) | Sets the image height. |
int32_t OH_ArkUI_ImageAnimatorFrameInfo_GetHeight (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Obtains the image height. |
void OH_ArkUI_ImageAnimatorFrameInfo_SetTop (ArkUI_ImageAnimatorFrameInfo *imageInfo, int32_t top) | Sets the vertical coordinate of an image relative to the upper left corner of the component. |
int32_t OH_ArkUI_ImageAnimatorFrameInfo_GetTop (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Obtains the vertical coordinate of an image relative to the upper left corner of the component. |
void OH_ArkUI_ImageAnimatorFrameInfo_SetLeft (ArkUI_ImageAnimatorFrameInfo *imageInfo, int32_t left) | Sets the horizontal coordinate of an image relative to the upper left corner of the component. |
int32_t OH_ArkUI_ImageAnimatorFrameInfo_GetLeft (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Obtains the horizontal coordinate of an image relative to the upper left corner of the component. |
void OH_ArkUI_ImageAnimatorFrameInfo_SetDuration (ArkUI_ImageAnimatorFrameInfo *imageInfo, int32_t duration) | Sets the playback duration of an image. |
int32_t OH_ArkUI_ImageAnimatorFrameInfo_GetDuration (ArkUI_ImageAnimatorFrameInfo *imageInfo) | Obtains the playback duration of an image. |
ArkUI_ListChildrenMainSize * OH_ArkUI_ListChildrenMainSizeOption_Create () | Creates a ListChildrenMainSize instance. |
void OH_ArkUI_ListChildrenMainSizeOption_Dispose (ArkUI_ListChildrenMainSize *option) | Disposes of a ListChildrenMainSize instance. |
int32_t OH_ArkUI_ListChildrenMainSizeOption_SetDefaultMainSize (ArkUI_ListChildrenMainSize *option, float defaultMainSize) | Sets the default size in a ListChildrenMainSize instance. |
float OH_ArkUI_ListChildrenMainSizeOption_GetDefaultMainSize (ArkUI_ListChildrenMainSize *option) | Obtains the default size in a ListChildrenMainSize instance. |
void OH_ArkUI_ListChildrenMainSizeOption_Resize (ArkUI_ListChildrenMainSize *option, int32_t totalSize) | Resets the array size in a ListChildrenMainSize instance. |
int32_t OH_ArkUI_ListChildrenMainSizeOption_Splice (ArkUI_ListChildrenMainSize *option, int32_t index, int32_t deleteCount, int32_t addCount) | Changes the content of a ChildrenMainSizeOption array. |
int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize (ArkUI_ListChildrenMainSize *option, int32_t index, float mainSize) | Updates the values of a ChildrenMainSizeOption array. |
float OH_ArkUI_ListChildrenMainSizeOption_GetMainSize (ArkUI_ListChildrenMainSize *option, int32_t index) | Obtains the values of a ChildrenMainSizeOption array. |
ArkUI_CustomSpanMeasureInfo * OH_ArkUI_CustomSpanMeasureInfo_Create (void) | Creates measurement information for this custom span. |
void OH_ArkUI_CustomSpanMeasureInfo_Dispose (ArkUI_CustomSpanMeasureInfo *info) | Disposes of measurement information of this custom span. |
float OH_ArkUI_CustomSpanMeasureInfo_GetFontSize (ArkUI_CustomSpanMeasureInfo *info) | Obtains the font size of the parent text node of a custom span. |
ArkUI_CustomSpanMetrics * OH_ArkUI_CustomSpanMetrics_Create (void) | Creates measurement metrics for this custom span. |
void OH_ArkUI_CustomSpanMetrics_Dispose (ArkUI_CustomSpanMetrics *metrics) | Disposes of measurement metrics of this custom span. |
int32_t OH_ArkUI_CustomSpanMetrics_SetWidth (ArkUI_CustomSpanMetrics *metrics, float width) | Sets the width for a custom span. |
int32_t OH_ArkUI_CustomSpanMetrics_SetHeight (ArkUI_CustomSpanMetrics *metrics, float height) | Sets the height for a custom span. |
ArkUI_CustomSpanDrawInfo * OH_ArkUI_CustomSpanDrawInfo_Create (void) | Creates drawing information for this custom span. |
void OH_ArkUI_CustomSpanDrawInfo_Dispose (ArkUI_CustomSpanDrawInfo *info) | Disposes of drawing information for this custom span. |
float OH_ArkUI_CustomSpanDrawInfo_GetXOffset (ArkUI_CustomSpanDrawInfo *info) | Obtains the x-axis offset of the custom span relative to the mounted component. |
float OH_ArkUI_CustomSpanDrawInfo_GetLineTop (ArkUI_CustomSpanDrawInfo *info) | Obtains the top margin of the custom span relative to the mounted component. |
float OH_ArkUI_CustomSpanDrawInfo_GetLineBottom (ArkUI_CustomSpanDrawInfo *info) | Obtains the bottom margin of the custom span relative to the mounted component. |
float OH_ArkUI_CustomSpanDrawInfo_GetBaseline (ArkUI_CustomSpanDrawInfo *info) | Obtains the baseline offset of the custom span relative to the mounted component. |
void OH_ArkUI_CustomProperty_Destroy (ArkUI_CustomProperty *handle) | Destroys a CustomProperty instance. |
const char * OH_ArkUI_CustomProperty_GetStringValue (ArkUI_CustomProperty *handle) | Obtains the value of a custom property. |
void OH_ArkUI_ActiveChildrenInfo_Destroy (ArkUI_ActiveChildrenInfo *handle) | Destroys an ActiveChildrenInfo instance. |
ArkUI_NodeHandle OH_ArkUI_ActiveChildrenInfo_GetNodeByIndex (ArkUI_ActiveChildrenInfo *handle, int32_t index) | Obtains the child node at the specified index in the specified ActiveChildrenInfo instance. |
int32_t OH_ArkUI_ActiveChildrenInfo_GetCount (ArkUI_ActiveChildrenInfo *handle) | Obtains the number of nodes in the specified ActiveChildrenInfo instance. |
ArkUI_SnapshotOptions* OH_ArkUI_CreateSnapshotOptions () | Creates a snapshot options object. |
void OH_ArkUI_DestroySnapshotOptions (ArkUI_SnapshotOptions* snapshotOptions) | Destroys a snapshot options object. |
int32_t OH_ArkUI_ActiveChildrenInfo_GetCount (ArkUI_SnapshotOptions* snapshotOptions, float scale) | Sets the scale property in the snapshot options. |
ArkUI_VisibleAreaEventOptions * OH_ArkUI_VisibleAreaEventOptions_Create (void) | Creates an instance of visible area change event parameters |
void OH_ArkUI_VisibleAreaEventOptions_Dispose (ArkUI_VisibleAreaEventOptions *option) | Disposes of an instance of visible area change event parameters. |
int32_t OH_ArkUI_VisibleAreaEventOptions_SetRatios (ArkUI_VisibleAreaEventOptions *option, float* value, int32_t size) | Sets the threshold ratios for visible area changes. |
int32_t OH_ArkUI_VisibleAreaEventOptions_SetExpectedUpdateInterval (ArkUI_VisibleAreaEventOptions *option, int32_t value) | Sets the expected update interval for visible area changes. Sets the expected update interval for visible area changes. |
int32_t OH_ArkUI_VisibleAreaEventOptions_GetRatios (ArkUI_VisibleAreaEventOptions *option, float* value, int32_t* size) | Obtains the threshold ratios for visible area changes. |
int32_t OH_ArkUI_VisibleAreaEventOptions_GetExpectedUpdateInterval (ArkUI_VisibleAreaEventOptions *option,) | Obtains the expected update interval for visible area changes. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦