harmony 鸿蒙native_type.h

2025-06-12 浏览 (1)

native_type.h

Overview

Defines the common types for the native module.

Library: libace_ndk.z.so

File to include: <arkui/native_type.h>

System capability: SystemCapability.ArkUI.ArkUI.Full

Since: 12

Related module: ArkUI_NativeModule

Summary

Structs

NameDescription
struct ArkUI_ContextCallbackDefines event callback.
union ArkUI_NumberValueProvides the number types of ArkUI in the native code.
struct ARKUI_TextPickerRangeContentDefines the input structure of the single-column text picker with image resources.
struct ARKUI_TextPickerCascadeRangeContentDefines the input structure of the interconnected multi-column text picker.
struct ArkUI_ColorStopDefines a gradient color stop.
struct ArkUI_RectDefines a mask area.
struct ArkUI_IntSizeDescribes the width and height of a component.
struct ArkUI_IntOffsetDescribes the position of a component.
struct ArkUI_MarginDescribes the margins of a component.
struct ArkUI_TranslationOptionsDefines the translation options for component transition.
struct ArkUI_ScaleOptionsDefines the scaling options for component transition.
struct ArkUI_RotationOptionsDefines the rotation options for component transition.

Types

NameDescription
typedef struct ArkUI_LayoutConstraint ArkUI_LayoutConstraintDefines the size constraints of a component during component layout.
typedef struct ArkUI_DrawContext ArkUI_DrawContextDefines the component drawing context.
typedef struct ArkUI_Node * ArkUI_NodeHandleDefines the pointer to the ArkUI native component object.
typedef struct ArkUI_NativeDialog * ArkUI_NativeDialogHandleDefines the handle to the custom dialog box controller of ArkUI on the native side.
typedef struct ArkUI_WaterFlowSectionOption ArkUI_WaterFlowSectionOptionDefines the water flow section configuration.
typedef struct ArkUI_ListItemSwipeActionItem ArkUI_ListItemSwipeActionItemDefines the item configuration for ListItemSwipeActionOption.
typedef struct ArkUI_ListItemSwipeActionOption ArkUI_ListItemSwipeActionOptionDefines the configuration for ListItemSwipeActionOption.
typedef struct ArkUI_Context * ArkUI_ContextHandleDefines the handle to the ArkUI native UI context.
typedef struct ArkUI_NodeContent * ArkUI_NodeContentHandleDefines the handle to the ArkUI NodeContent instance on the native side.
typedef struct ArkUI_AlignmentRuleOption ArkUI_AlignmentRuleOptionDefines the alignment rule in the relative container.
typedef struct ArkUI_GuidelineOption ArkUI_GuidelineOptionDefines the ID, direction, and position of a guideline.
typedef struct ArkUI_BarrierOption ArkUI_BarrierOptionDefines the ID, direction, and referenced component of a barrier.
typedef struct ArkUI_ImageAnimatorFrameInfo ArkUI_ImageAnimatorFrameInfoDefines the image frame information.
typedef struct ArkUI_ListChildrenMainSize ArkUI_ListChildrenMainSizeDefines the ChildrenMainSize information of the List component.
typedef struct ArkUI_AccessibilityState ArkUI_AccessibilityStateDefines a struct for the component accessibility state.
typedef struct ArkUI_AccessibilityValue ArkUI_AccessibilityValueDefines a struct for the component accessibility value.
typedef struct ArkUI_SystemFontStyleEvent ArkUI_SystemFontStyleEventDefines a struct for the system font style event.
typedef struct ArkUI_CustomSpanMeasureInfo ArkUI_CustomSpanMeasureInfoDefines a struct for the measurement information of a custom span.
typedef struct ArkUI_CustomSpanMetrics ArkUI_CustomSpanMetricsDefines a struct for the measurement metrics of a custom span.
typedef struct ArkUI_CustomSpanDrawInfo ArkUI_CustomSpanDrawInfoDefines a struct for the drawing information of a custom span.
typedef struct ArkUI_SwiperIndicator ArkUI_SwiperIndicatorDefines the navigation indicator style of the Swiper component.
typedef struct ArkUI_StyledString_Descriptor ArkUI_StyledString_DescriptorDefines a struct for the styled string descriptor object supported by the text component.
typedef struct ArkUI_SnapshotOptions ArkUI_LayoutConstraintDefines a struct for the component snapshot options.
typedef struct ArkUI_VisibleAreaEventOptions ArkUI_VisibleAreaEventOptionsDefines the parameters for visible area change events.

Enums

NameDescription
ArkUI_Alignment {
ARKUI_ALIGNMENT_TOP_START = 0, ARKUI_ALIGNMENT_TOP, ARKUI_ALIGNMENT_TOP_END, ARKUI_ALIGNMENT_START,
ARKUI_ALIGNMENT_CENTER, ARKUI_ALIGNMENT_END, ARKUI_ALIGNMENT_BOTTOM_START, ARKUI_ALIGNMENT_BOTTOM,
ARKUI_ALIGNMENT_BOTTOM_END
}
Enumerates the alignment modes.
ArkUI_ImageRepeat { ARKUI_IMAGE_REPEAT_NONE = 0, ARKUI_IMAGE_REPEAT_X, ARKUI_IMAGE_REPEAT_Y, ARKUI_IMAGE_REPEAT_XY }Enumerates the image repeat patterns.
ArkUI_FontStyle { ARKUI_FONT_STYLE_NORMAL = 0, ARKUI_FONT_STYLE_ITALIC }Enumerates the font styles.
ArkUI_FontWeight {
ARKUI_FONT_WEIGHT_W100 = 0, ARKUI_FONT_WEIGHT_W200, ARKUI_FONT_WEIGHT_W300, ARKUI_FONT_WEIGHT_W400,
ARKUI_FONT_WEIGHT_W500, ARKUI_FONT_WEIGHT_W600, ARKUI_FONT_WEIGHT_W700, ARKUI_FONT_WEIGHT_W800,
ARKUI_FONT_WEIGHT_W900, ARKUI_FONT_WEIGHT_BOLD, ARKUI_FONT_WEIGHT_NORMAL, ARKUI_FONT_WEIGHT_BOLDER,
ARKUI_FONT_WEIGHT_LIGHTER, ARKUI_FONT_WEIGHT_MEDIUM, ARKUI_FONT_WEIGHT_REGULAR
}
Enumerates the font weights.
ArkUI_TextAlignment { ARKUI_TEXT_ALIGNMENT_START = 0, ARKUI_TEXT_ALIGNMENT_CENTER, ARKUI_TEXT_ALIGNMENT_END, ARKUI_TEXT_ALIGNMENT_JUSTIFY }Enumerates the text alignment mode.
ArkUI_EnterKeyType {
ARKUI_ENTER_KEY_TYPE_GO = 2, ARKUI_ENTER_KEY_TYPE_SEARCH = 3, ARKUI_ENTER_KEY_TYPE_SEND, ARKUI_ENTER_KEY_TYPE_NEXT,
ARKUI_ENTER_KEY_TYPE_DONE, ARKUI_ENTER_KEY_TYPE_PREVIOUS, ARKUI_ENTER_KEY_TYPE_NEW_LINE
}
Enumerates the types of the Enter key for a single-line text box.
ArkUI_TextInputType {
ARKUI_TEXTINPUT_TYPE_NORMAL = 0, ARKUI_TEXTINPUT_TYPE_NUMBER = 2, ARKUI_TEXTINPUT_TYPE_PHONE_NUMBER = 3, ARKUI_TEXTINPUT_TYPE_EMAIL = 5,
ARKUI_TEXTINPUT_TYPE_PASSWORD = 7, ARKUI_TEXTINPUT_TYPE_NUMBER_PASSWORD = 8, ARKUI_TEXTINPUT_TYPE_SCREEN_LOCK_PASSWORD = 9, ARKUI_TEXTINPUT_TYPE_USER_NAME = 10,
ARKUI_TEXTINPUT_TYPE_NEW_PASSWORD = 11, ARKUI_TEXTINPUT_TYPE_NUMBER_DECIMAL = 12
}
Enumerates the text input types.
ArkUI_TextAreaType { ARKUI_TEXTAREA_TYPE_NORMAL = 0, ARKUI_TEXTAREA_TYPE_NUMBER = 2, ARKUI_TEXTAREA_TYPE_PHONE_NUMBER = 3, ARKUI_TEXTAREA_TYPE_EMAIL = 5 }Enumerates the text box types.
ArkUI_CancelButtonStyle { ARKUI_CANCELBUTTON_STYLE_CONSTANT = 0, ARKUI_CANCELBUTTON_STYLE_INVISIBLE, ARKUI_CANCELBUTTON_STYLE_INPUT }Enumerates the styles of the Cancel button.
ArkUI_XComponentType { ARKUI_XCOMPONENT_TYPE_SURFACE = 0, ARKUI_XCOMPONENT_TYPE_TEXTURE = 2 }Enumerates the types of the XComponent.
ArkUI_ProgressType {
ARKUI_PROGRESS_TYPE_LINEAR = 0, ARKUI_PROGRESS_TYPE_RING, ARKUI_PROGRESS_TYPE_ECLIPSE, ARKUI_PROGRESS_TYPE_SCALE_RING,
ARKUI_PROGRESS_TYPE_CAPSULE
}
Enumerates the styles of the progress indicator.
ArkUI_TextDecorationType { ARKUI_TEXT_DECORATION_TYPE_NONE = 0, ARKUI_TEXT_DECORATION_TYPE_UNDERLINE, ARKUI_TEXT_DECORATION_TYPE_OVERLINE, ARKUI_TEXT_DECORATION_TYPE_LINE_THROUGH }Enumerates the text decoration types.
ArkUI_TextDecorationStyle {
ARKUI_TEXT_DECORATION_STYLE_SOLID = 0, ARKUI_TEXT_DECORATION_STYLE_DOUBLE, ARKUI_TEXT_DECORATION_STYLE_DOTTED, ARKUI_TEXT_DECORATION_STYLE_DASHED,
ARKUI_TEXT_DECORATION_STYLE_WAVY
}
Enumerates the text decoration styles.
ArkUI_TextCase { ARKUI_TEXT_CASE_NORMAL = 0, ARKUI_TEXT_CASE_LOWER, ARKUI_TEXT_CASE_UPPER }Enumerates the text cases.
ArkUI_CopyOptions { ARKUI_COPY_OPTIONS_NONE = 0, ARKUI_COPY_OPTIONS_IN_APP, ARKUI_COPY_OPTIONS_LOCAL_DEVICE, ARKUI_COPY_OPTIONS_CROSS_DEVICE }Enumerates the text copy and paste modes.
ArkUI_ShadowType { ARKUI_SHADOW_TYPE_COLOR = 0, ARKUI_SHADOW_TYPE_BLUR }Enumerates the shadow types.
ArkUI_TextPickerRangeType { ARKUI_TEXTPICKER_RANGETYPE_SINGLE = 0, ARKUI_TEXTPICKER_RANGETYPE_MULTI, ARKUI_TEXTPICKER_RANGETYPE_RANGE_CONTENT, ARKUI_TEXTPICKER_RANGETYPE_CASCADE_RANGE_CONTENT }Enumerates the types of the text picker.
ArkUI_AccessibilityCheckedState { ARKUI_ACCESSIBILITY_UNCHECKED = 0, ARKUI_ACCESSIBILITY_CHECKED }Enumerates the accessibility check box states.
ArkUI_AccessibilityActionType {
ARKUI_ACCESSIBILITY_ACTION_CLICK = 1 << 0, ARKUI_ACCESSIBILITY_ACTION_LONG_CLICK = 1 << 1, ARKUI_ACCESSIBILITY_ACTION_CUT = 1 << 2, ARKUI_ACCESSIBILITY_ACTION_COPY = 1 << 3,
ARKUI_ACCESSIBILITY_ACTION_PASTE = 1 << 4
}
Defines an enum for the accessibility action types.
ArkUI_EdgeEffect { ARKUI_EDGE_EFFECT_SPRING = 0, ARKUI_EDGE_EFFECT_FADE, ARKUI_EDGE_EFFECT_NONE }Enumerates the effects used at the edges of the component when the boundary of the scrollable content is reached.
ArkUI_EffectEdge { ARKUI_EFFECT_EDGE_START = 1, ARKUI_EFFECT_EDGE_END = 2 }Enumerates the edges for which the effect takes effect when the boundary of the scrollable content is reached.
ArkUI_ScrollDirection { ARKUI_SCROLL_DIRECTION_VERTICAL = 0, ARKUI_SCROLL_DIRECTION_HORIZONTAL, ARKUI_SCROLL_DIRECTION_NONE = 3 }Enumerates the scroll directions of scrollable components.
ArkUI_ScrollSnapAlign { ARKUI_SCROLL_SNAP_ALIGN_NONE = 0, ARKUI_SCROLL_SNAP_ALIGN_START, ARKUI_SCROLL_SNAP_ALIGN_CENTER, ARKUI_SCROLL_SNAP_ALIGN_END }Enumerates the alignment modes of list items when scrolling ends.
ArkUI_ScrollBarDisplayMode { ARKUI_SCROLL_BAR_DISPLAY_MODE_OFF = 0, ARKUI_SCROLL_BAR_DISPLAY_MODE_AUTO, ARKUI_SCROLL_BAR_DISPLAY_MODE_ON }Enumerates the scrollbar display modes.
ArkUI_Axis { ARKUI_AXIS_VERTICAL = 0, ARKUI_AXIS_HORIZONTAL }Enumerates the scroll directions.
ArkUI_StickyStyle { ARKUI_STICKY_STYLE_NONE = 0, ARKUI_STICKY_STYLE_HEADER = 1, ARKUI_STICKY_STYLE_FOOTER = 2, ARKUI_STICKY_STYLE_BOTH = 3 }Enumerates the modes for pinning the header to the top or the footer to the bottom.
ArkUI_BorderStyle { ARKUI_BORDER_STYLE_SOLID = 0, ARKUI_BORDER_STYLE_DASHED, ARKUI_BORDER_STYLE_DOTTED }Enumerates the border styles.
ArkUI_HitTestMode { ARKUI_HIT_TEST_MODE_DEFAULT = 0, ARKUI_HIT_TEST_MODE_BLOCK, ARKUI_HIT_TEST_MODE_TRANSPARENT, ARKUI_HIT_TEST_MODE_NONE }Enumerates the hit test modes.
ArkUI_ShadowStyle {
ARKUI_SHADOW_STYLE_OUTER_DEFAULT_XS = 0, ARKUI_SHADOW_STYLE_OUTER_DEFAULT_SM, ARKUI_SHADOW_STYLE_OUTER_DEFAULT_MD, ARKUI_SHADOW_STYLE_OUTER_DEFAULT_LG,
ARKUI_SHADOW_STYLE_OUTER_FLOATING_SM, ARKUI_SHADOW_STYLE_OUTER_FLOATING_MD
}
Enumerated value of the shadow effect.
ArkUI_AnimationCurve {
ARKUI_CURVE_LINEAR = 0, ARKUI_CURVE_EASE, ARKUI_CURVE_EASE_IN, ARKUI_CURVE_EASE_OUT,
ARKUI_CURVE_EASE_IN_OUT, ARKUI_CURVE_FAST_OUT_SLOW_IN, ARKUI_CURVE_LINEAR_OUT_SLOW_IN, ARKUI_CURVE_FAST_OUT_LINEAR_IN,
ARKUI_CURVE_EXTREME_DECELERATION, ARKUI_CURVE_SHARP, ARKUI_CURVE_RHYTHM, ARKUI_CURVE_SMOOTH,
ARKUI_CURVE_FRICTION
}
Enumerates the animation curves.
ArkUI_SwiperArrow { ARKUI_SWIPER_ARROW_HIDE = 0, ARKUI_SWIPER_ARROW_SHOW, ARKUI_SWIPER_ARROW_SHOW_ON_HOVER }Enumerates arrow styles of the navigation indicator.
ArkUI_SwiperNestedScrollMode { ARKUI_SWIPER_NESTED_SRCOLL_SELF_ONLY = 0, ARKUI_SWIPER_NESTED_SRCOLL_SELF_FIRST }Enumerates the nested scrolling mode of the Swiper component and its parent container.
ArkUI_PageFlipMode { ARKUI_PAGE_FLIP_MODE_CONTINUOUS = 0, ARKUI_PAGE_FLIP_MODE_SINGLE }Enumerates the page flipping modes using the mouse wheel for the Swiper component.
ArkUI_AccessibilityMode { ARKUI_ACCESSIBILITY_MODE_AUTO = 0, ARKUI_ACCESSIBILITY_MODE_ENABLED, ARKUI_ACCESSIBILITY_MODE_DISABLED, ARKUI_ACCESSIBILITY_MODE_DISABLED_FOR_DESCENDANTS }Enumerates the accessibility modes.
ArkUI_TextCopyOptions { ARKUI_TEXT_COPY_OPTIONS_NONE = 0, ARKUI_TEXT_COPY_OPTIONS_IN_APP, ARKUI_TEXT_COPY_OPTIONS_LOCAL_DEVICE, ARKUI_TEXT_COPY_OPTIONS_CROSS_DEVICE }Defines whether copy and paste is allowed for text content.
ArkUI_TextHeightAdaptivePolicy { ARKUI_TEXT_HEIGHT_ADAPTIVE_POLICY_MAX_LINES_FIRST = 0, ARKUI_TEXT_HEIGHT_ADAPTIVE_POLICY_MIN_FONT_SIZE_FIRST, ARKUI_TEXT_HEIGHT_ADAPTIVE_POLICY_LAYOUT_CONSTRAINT_FIRST }Defines how the adaptive height is determined for the text.
ArkUI_ScrollNestedMode { ARKUI_SCROLL_NESTED_MODE_SELF_ONLY = 0, ARKUI_SCROLL_NESTED_MODE_SELF_FIRST, ARKUI_SCROLL_NESTED_MODE_PARENT_FIRST, ARKUI_SCROLL_NESTED_MODE_PARALLEL }Enumerates the nested scrolling modes.
ArkUI_ScrollEdge { ARKUI_SCROLL_EDGE_TOP = 0, ARKUI_SCROLL_EDGE_BOTTOM, ARKUI_SCROLL_EDGE_START, ARKUI_SCROLL_EDGE_END }Defines the edge to which the component scrolls.
ArkUI_ScrollAlignment { ARKUI_SCROLL_ALIGNMENT_START = 0, ARKUI_SCROLL_ALIGNMENT_CENTER, ARKUI_SCROLL_ALIGNMENT_END, ARKUI_SCROLL_ALIGNMENT_AUTO }Defines how the list item to scroll to is aligned with the container.
ArkUI_ScrollState { ARKUI_SCROLL_STATE_IDLE = 0, ARKUI_SCROLL_STATE_SCROLL, ARKUI_SCROLL_STATE_FLING }Enumerates the scrolling states.
ArkUI_SliderBlockStyle { ARKUI_SLIDER_BLOCK_STYLE_DEFAULT = 0, ARKUI_SLIDER_BLOCK_STYLE_IMAGE, ARKUI_SLIDER_BLOCK_STYLE_SHAPE }Enumerates the types of the slider in the block direction.
ArkUI_SliderDirection { ARKUI_SLIDER_DIRECTION_VERTICAL = 0, ARKUI_SLIDER_DIRECTION_HORIZONTAL }Enumerates the scroll directions of the slider.
ArkUI_SliderStyle { ARKUI_SLIDER_STYLE_OUT_SET = 0, ARKUI_SLIDER_STYLE_IN_SET, ARKUI_SLIDER_STYLE_NONE }Enumerates the slider styles.
ArkUI_CheckboxShape { ArkUI_CHECKBOX_SHAPE_CIRCLE = 0, ArkUI_CHECKBOX_SHAPE_ROUNDED_SQUARE }Enumerates the shapes of the check box.
ArkUI_AnimationPlayMode { ARKUI_ANIMATION_PLAY_MODE_NORMAL = 0, ARKUI_ANIMATION_PLAY_MODE_REVERSE, ARKUI_ANIMATION_PLAY_MODE_ALTERNATE, ARKUI_ANIMATION_PLAY_MODE_ALTERNATE_REVERSE }Enumerates the animation playback modes.
ArkUI_ImageSize { ARKUI_IMAGE_SIZE_AUTO = 0, ARKUI_IMAGE_SIZE_COVER, ARKUI_IMAGE_SIZE_CONTAIN }Defines the image size.
ArkUI_AdaptiveColor { ARKUI_ADAPTIVE_COLOR_DEFAULT = 0, ARKUI_ADAPTIVE_COLOR_AVERAGE }Enumerates the adaptive color modes.
ArkUI_ColorMode { ARKUI_COLOR_MODE_SYSTEM = 0, ARKUI_COLOR_MODE_LIGHT, ARKUI_COLOR_MODE_DARK }Enumerates the color modes.
ArkUI_SystemColorMode { ARKUI_SYSTEM_COLOR_MODE_LIGHT = 0, ARKUI_SYSTEM_COLOR_MODE_DARK }Enumerates the system color modes.
ArkUI_BlurStyle {
ARKUI_BLUR_STYLE_THIN = 0, ARKUI_BLUR_STYLE_REGULAR, ARKUI_BLUR_STYLE_THICK, ARKUI_BLUR_STYLE_BACKGROUND_THIN,
ARKUI_BLUR_STYLE_BACKGROUND_REGULAR, ARKUI_BLUR_STYLE_BACKGROUND_THICK, ARKUI_BLUR_STYLE_BACKGROUND_ULTRA_THICK, ARKUI_BLUR_STYLE_NONE,
ARKUI_BLUR_STYLE_COMPONENT_ULTRA_THIN, ARKUI_BLUR_STYLE_COMPONENT_THIN, ARKUI_BLUR_STYLE_COMPONENT_REGULAR, ARKUI_BLUR_STYLE_COMPONENT_THICK,
ARKUI_BLUR_STYLE_COMPONENT_ULTRA_THICK
}
Enumerates the blur styles.
ArkUI_VerticalAlignment { ARKUI_VERTICAL_ALIGNMENT_TOP = 0, ARKUI_VERTICAL_ALIGNMENT_CENTER, ARKUI_VERTICAL_ALIGNMENT_BOTTOM }Enumerates the vertical alignment modes.
ArkUI_HorizontalAlignment { ARKUI_HORIZONTAL_ALIGNMENT_START = 0, ARKUI_HORIZONTAL_ALIGNMENT_CENTER, ARKUI_HORIZONTAL_ALIGNMENT_END }Enumerates the alignment mode in the horizontal direction.
ArkUI_TextOverflow { ARKUI_TEXT_OVERFLOW_NONE = 0, ARKUI_TEXT_OVERFLOW_CLIP, ARKUI_TEXT_OVERFLOW_ELLIPSIS, ARKUI_TEXT_OVERFLOW_MARQUEE }Enumerates the display modes when the text is too long.
ArkUI_ImageSpanAlignment { ARKUI_IMAGE_SPAN_ALIGNMENT_BASELINE = 0, ARKUI_IMAGE_SPAN_ALIGNMENT_BOTTOM, ARKUI_IMAGE_SPAN_ALIGNMENT_CENTER, ARKUI_IMAGE_SPAN_ALIGNMENT_TOP }Enumerates the alignment mode of the image with the text.
ArkUI_ObjectFit {
ARKUI_OBJECT_FIT_CONTAIN = 0, ARKUI_OBJECT_FIT_COVER, ARKUI_OBJECT_FIT_AUTO, ARKUI_OBJECT_FIT_FILL,
ARKUI_OBJECT_FIT_SCALE_DOWN, ARKUI_OBJECT_FIT_NONE, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_START, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP,
ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_END, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_START, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_CENTER, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_END,
ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_START, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM, ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_END
}
Defines the image filling effect. ImageSpanAlignment
ArkUI_ImageInterpolation { ARKUI_IMAGE_INTERPOLATION_NONE = 0, ARKUI_IMAGE_INTERPOLATION_LOW, ARKUI_IMAGE_INTERPOLATION_MEDIUM, ARKUI_IMAGE_INTERPOLATION_HIGH }Enumerates the image interpolation effects.
ArkUI_BlendMode {
ARKUI_BLEND_MODE_NONE = 0, ARKUI_BLEND_MODE_CLEAR, ARKUI_BLEND_MODE_SRC, ARKUI_BLEND_MODE_DST,
ARKUI_BLEND_MODE_SRC_OVER, ARKUI_BLEND_MODE_DST_OVER, ARKUI_BLEND_MODE_SRC_IN, ARKUI_BLEND_MODE_DST_IN,
ARKUI_BLEND_MODE_SRC_OUT, ARKUI_BLEND_MODE_DST_OUT, ARKUI_BLEND_MODE_SRC_ATOP, ARKUI_BLEND_MODE_DST_ATOP,
ARKUI_BLEND_MODE_XOR, ARKUI_BLEND_MODE_PLUS, ARKUI_BLEND_MODE_MODULATE, ARKUI_BLEND_MODE_SCREEN,
ARKUI_BLEND_MODE_OVERLAY, ARKUI_BLEND_MODE_DARKEN, ARKUI_BLEND_MODE_LIGHTEN, ARKUI_BLEND_MODE_COLOR_DODGE,
ARKUI_BLEND_MODE_COLOR_BURN, ARKUI_BLEND_MODE_HARD_LIGHT, ARKUI_BLEND_MODE_SOFT_LIGHT, ARKUI_BLEND_MODE_DIFFERENCE,
ARKUI_BLEND_MODE_EXCLUSION, ARKUI_BLEND_MODE_MULTIPLY, ARKUI_BLEND_MODE_HUE, ARKUI_BLEND_MODE_SATURATION,
ARKUI_BLEND_MODE_COLOR, ARKUI_BLEND_MODE_LUMINOSITY
}
Enumerates the blend modes.
ArkUI_Direction { ARKUI_DIRECTION_LTR = 0, ARKUI_DIRECTION_RTL, ARKUI_DIRECTION_AUTO = 3 }Enumerates the modes in which components are laid out along the main axis of the container.
ArkUI_ItemAlignment {
ARKUI_ITEM_ALIGNMENT_AUTO = 0, ARKUI_ITEM_ALIGNMENT_START, ARKUI_ITEM_ALIGNMENT_CENTER, ARKUI_ITEM_ALIGNMENT_END,
ARKUI_ITEM_ALIGNMENT_STRETCH, ARKUI_ITEM_ALIGNMENT_BASELINE
}
Enumerates the modes in which components are laid out along the cross axis of the container.
ArkUI_ColorStrategy { ARKUI_COLOR_STRATEGY_INVERT = 0, ARKUI_COLOR_STRATEGY_AVERAGE, ARKUI_COLOR_STRATEGY_PRIMARY }Enumerates the foreground colors.
ArkUI_FlexAlignment {
ARKUI_FLEX_ALIGNMENT_START = 1, ARKUI_FLEX_ALIGNMENT_CENTER = 2, ARKUI_FLEX_ALIGNMENT_END = 3, ARKUI_FLEX_ALIGNMENT_SPACE_BETWEEN = 6,
ARKUI_FLEX_ALIGNMENT_SPACE_AROUND = 7, ARKUI_FLEX_ALIGNMENT_SPACE_EVENLY = 8
}
Enumerates the vertical alignment modes.
ArkUI_FlexDirection { ARKUI_FLEX_DIRECTION_ROW = 0, ARKUI_FLEX_DIRECTION_COLUMN, ARKUI_FLEX_DIRECTION_ROW_REVERSE, ARKUI_FLEX_DIRECTION_COLUMN_REVERSE }Enumerates the directions of the main axis in the flex container.
ArkUI_FlexWrap { ARKUI_FLEX_WRAP_NO_WRAP = 0, ARKUI_FLEX_WRAP_WRAP, ARKUI_FLEX_WRAP_WRAP_REVERSE }Defines whether the flex container has a single line or multiple lines.
ArkUI_Visibility { ARKUI_VISIBILITY_VISIBLE = 0, ARKUI_VISIBILITY_HIDDEN, ARKUI_VISIBILITY_NONE }Enumerates the visibility values.
ArkUI_CalendarAlignment { ARKUI_CALENDAR_ALIGNMENT_START = 0, ARKUI_CALENDAR_ALIGNMENT_CENTER, ARKUI_CALENDAR_ALIGNMENT_END }Enumerates the alignment modes between the calendar picker and the entry component.
ArkUI_MaskType {
ARKUI_MASK_TYPE_RECTANGLE = 0, ARKUI_MASK_TYPE_CIRCLE, ARKUI_MASK_TYPE_ELLIPSE, ARKUI_MASK_TYPE_PATH,
ARKUI_MASK_TYPE_PROGRESS
}
Enumerates the mask types.
ArkUI_ClipType { ARKUI_CLIP_TYPE_RECTANGLE = 0, ARKUI_CLIP_TYPE_CIRCLE, ARKUI_CLIP_TYPE_ELLIPSE, ARKUI_CLIP_TYPE_PATH }Enumerates the clipping region types.
ArkUI_ShapeType { ARKUI_SHAPE_TYPE_RECTANGLE = 0, ARKUI_SHAPE_TYPE_CIRCLE, ARKUI_SHAPE_TYPE_ELLIPSE, ARKUI_SHAPE_TYPE_PATH }Enumerates custom shape types.
ArkUI_LinearGradientDirection {
ARKUI_LINEAR_GRADIENT_DIRECTION_LEFT = 0, ARKUI_LINEAR_GRADIENT_DIRECTION_TOP, ARKUI_LINEAR_GRADIENT_DIRECTION_RIGHT, ARKUI_LINEAR_GRADIENT_DIRECTION_BOTTOM,
ARKUI_LINEAR_GRADIENT_DIRECTION_LEFT_TOP, ARKUI_LINEAR_GRADIENT_DIRECTION_LEFT_BOTTOM, ARKUI_LINEAR_GRADIENT_DIRECTION_RIGHT_TOP, ARKUI_LINEAR_GRADIENT_DIRECTION_RIGHT_BOTTOM,
ARKUI_LINEAR_GRADIENT_DIRECTION_NONE, ARKUI_LINEAR_GRADIENT_DIRECTION_CUSTOM
}
Enumerates the gradient directions.
ArkUI_WordBreak { ARKUI_WORD_BREAK_NORMAL = 0, ARKUI_WORD_BREAK_BREAK_ALL, ARKUI_WORD_BREAK_BREAK_WORD, ARKUI_WORD_BREAK_HYPHENATION }Enumerates the word break rules.
ArkUI_EllipsisMode { ARKUI_ELLIPSIS_MODE_START = 0, ARKUI_ELLIPSIS_MODE_CENTER, ARKUI_ELLIPSIS_MODE_END }Enumerates the ellipsis positions.
ArkUI_ImageRenderMode { ARKUI_IMAGE_RENDER_MODE_ORIGINAL = 0, ARKUI_IMAGE_RENDER_MODE_TEMPLATE }Enumerates the image rendering modes.
ArkUI_TransitionEdge { ARKUI_TRANSITION_EDGE_TOP = 0, ARKUI_TRANSITION_EDGE_BOTTOM, ARKUI_TRANSITION_EDGE_START, ARKUI_TRANSITION_EDGE_END }Enumerates the slide-in and slide-out positions of the component from the screen edge during transition.
ArkUI_FinishCallbackType { ARKUI_FINISH_CALLBACK_REMOVED = 0, ARKUI_FINISH_CALLBACK_LOGICALLY }Enumerates the animation onFinish callback types.
ArkUI_ListItemAlignment { ARKUI_LIST_ITEM_ALIGNMENT_START = 0, ARKUI_LIST_ITEM_ALIGNMENT_CENTER, ARKUI_LIST_ITEM_ALIGNMENT_END }Enumerates the alignment modes of items along the cross axis.
ArkUI_BlendApplyType { BLEND_APPLY_TYPE_FAST = 0, BLEND_APPLY_TYPE_OFFSCREEN }Defines how the specified blend mode is applied.
ArkUI_LengthMetricUnit { ARKUI_LENGTH_METRIC_UNIT_DEFAULT = -1, ARKUI_LENGTH_METRIC_UNIT_PX = 0, ARKUI_LENGTH_METRIC_UNIT_VP, ARKUI_LENGTH_METRIC_UNIT_FP }Enumerates the component units.
ArkUI_TextInputContentType {
ARKUI_TEXTINPUT_CONTENT_TYPE_USER_NAME = 0, ARKUI_TEXTINPUT_CONTENT_TYPE_PASSWORD, ARKUI_TEXTINPUT_CONTENT_TYPE_NEW_PASSWORD, ARKUI_TEXTINPUT_CONTENT_TYPE_FULL_STREET_ADDRESS,
ARKUI_TEXTINPUT_CONTENT_TYPE_HOUSE_NUMBER, ARKUI_TEXTINPUT_CONTENT_TYPE_DISTRICT_ADDRESS, ARKUI_TEXTINPUT_CONTENT_TYPE_CITY_ADDRESS, ARKUI_TEXTINPUT_CONTENT_TYPE_PROVINCE_ADDRESS,
ARKUI_TEXTINPUT_CONTENT_TYPE_COUNTRY_ADDRESS, ARKUI_TEXTINPUT_CONTENT_TYPE_PERSON_FULL_NAME, ARKUI_TEXTINPUT_CONTENT_TYPE_PERSON_LAST_NAME, ARKUI_TEXTINPUT_CONTENT_TYPE_PERSON_FIRST_NAME,
ARKUI_TEXTINPUT_CONTENT_TYPE_PHONE_NUMBER, ARKUI_TEXTINPUT_CONTENT_TYPE_PHONE_COUNTRY_CODE, ARKUI_TEXTINPUT_CONTENT_TYPE_FULL_PHONE_NUMBER, ARKUI_TEXTINPUT_CONTENT_EMAIL_ADDRESS,
ARKUI_TEXTINPUT_CONTENT_TYPE_BANK_CARD_NUMBER, ARKUI_TEXTINPUT_CONTENT_TYPE_ID_CARD_NUMBER, ARKUI_TEXTINPUT_CONTENT_TYPE_NICKNAME, ARKUI_TEXTINPUT_CONTENT_TYPE_DETAIL_INFO_WITHOUT_STREET,
ARKUI_TEXTINPUT_CONTENT_TYPE_FORMAT_ADDRESS,
ARKUI_TEXTINPUT_CONTENT_TYPE_PASSPORT_NUMBER,
ARKUI_TEXTINPUT_CONTENT_TYPE_VALIDITY,
ARKUI_TEXTINPUT_CONTENT_TYPE_ISSUE_AT,
ARKUI_TEXTINPUT_CONTENT_TYPE_ORGANIZATION,
ARKUI_TEXTINPUT_CONTENT_TYPE_TAX_ID,
ARKUI_TEXTINPUT_CONTENT_TYPE_ADDRESS_CITY_AND_STATE,
ARKUI_TEXTINPUT_CONTENT_TYPE_FLIGHT_NUMBER,
ARKUI_TEXTINPUT_CONTENT_TYPE_LICENSE_NUMBER,
ARKUI_TEXTINPUT_CONTENT_TYPE_LICENSE_FILE_NUMBER,
ARKUI_TEXTINPUT_CONTENT_TYPE_LICENSE_PLATE,
ARKUI_TEXTINPUT_CONTENT_TYPE_ENGINE_NUMBER,
ARKUI_TEXTINPUT_CONTENT_TYPE_LICENSE_CHASSIS_NUMBER,
}
Enumerates the autofill types.
ArkUI_BarrierDirection { ARKUI_BARRIER_DIRECTION_START = 0, ARKUI_BARRIER_DIRECTION_END, ARKUI_BARRIER_DIRECTION_TOP, ARKUI_BARRIER_DIRECTION_BOTTOM }Enumerates the barrier directions.
ArkUI_RelativeLayoutChainStyle { ARKUI_RELATIVE_LAYOUT_CHAIN_STYLE_SPREAD = 0, ARKUI_RELATIVE_LAYOUT_CHAIN_STYLE_SPREAD_INSIDE, ARKUI_RELATIVE_LAYOUT_CHAIN_STYLE_PACKED }Enumerates the chain styles.
ArkUI_TextInputStyle { ARKUI_TEXTINPUT_STYLE_DEFAULT = 0, ARKUI_TEXTINPUT_STYLE_INLINE }Enumerates the text input styles.
ArkUI_TextDataDetectorType { ARKUI_TEXT_DATA_DETECTOR_TYPE_PHONE_NUMBER = 0, ARKUI_TEXT_DATA_DETECTOR_TYPE_URL, ARKUI_TEXT_DATA_DETECTOR_TYPE_EMAIL, ARKUI_TEXT_DATA_DETECTOR_TYPE_ADDRESS }Enumerates the entity types of text recognition.
ArkUI_ButtonType { ARKUI_BUTTON_TYPE_NORMAL = 0, ARKUI_BUTTON_TYPE_CAPSULE, ARKUI_BUTTON_TYPE_CIRCLE }Enumerates the button types.
ArkUI_RenderFit {
ARKUI_RENDER_FIT_CENTER = 0, ARKUI_RENDER_FIT_TOP, ARKUI_RENDER_FIT_BOTTOM, ARKUI_RENDER_FIT_LEFT,
ARKUI_RENDER_FIT_RIGHT, ARKUI_RENDER_FIT_TOP_LEFT, ARKUI_RENDER_FIT_TOP_RIGHT, ARKUI_RENDER_FIT_BOTTOM_LEFT,
ARKUI_RENDER_FIT_BOTTOM_RIGHT, ARKUI_RENDER_FIT_RESIZE_FILL, ARKUI_RENDER_FIT_RESIZE_CONTAIN, ARKUI_RENDER_FIT_RESIZE_CONTAIN_TOP_LEFT,
ARKUI_RENDER_FIT_RESIZE_CONTAIN_BOTTOM_RIGHT, ARKUI_RENDER_FIT_RESIZE_COVER, ARKUI_RENDER_FIT_RESIZE_COVER_TOP_LEFT, ARKUI_RENDER_FIT_RESIZE_COVER_BOTTOM_RIGHT
}
ArkUI_ThemeColorMode { ARKUI_THEME_COLOR_MODE_SYSTEM = 0, ARKUI_THEME_COLOR_MODE_LIGHT, ARKUI_THEME_COLOR_MODE_DARK }
ArkUI_SwiperIndicatorType { ARKUI_SWIPER_INDICATOR_TYPE_DOT, ARKUI_SWIPER_INDICATOR_TYPE_DIGIT }Enumerates the navigation indicator types of the Swiper component.
ArkUI_AnimationDirection { ARKUI_ANIMATION_DIRECTION_NORMAL = 0, ARKUI_ANIMATION_DIRECTION_REVERSE, ARKUI_ANIMATION_DIRECTION_ALTERNATE, ARKUI_ANIMATION_DIRECTION_ALTERNATE_REVERSE }Enumerates the animation playback modes.
ArkUI_AnimationFill { ARKUI_ANIMATION_FILL_NONE = 0, ARKUI_ANIMATION_FILL_FORWARDS, ARKUI_ANIMATION_FILL_BACKWARDS, ARKUI_ANIMATION_FILL_BOTH }Enumerates the state of the animated target after the animation is executed.
ArkUI_SwiperDisplayModeType { ARKUI_SWIPER_DISPLAY_MODE_STRETCH, ARKUI_SWIPER_DISPLAY_MODE_AUTO_LINEAR }Enumerates the modes in which elements are displayed along the main axis of the Swiper component.
ArkUI_ListItemSwipeActionState { ARKUI_LIST_ITEM_SWIPE_ACTION_STATE_COLLAPSED = 0, ARKUI_LIST_ITEM_SWIPE_ACTION_STATE_EXPANDED, ARKUI_LIST_ITEM_SWIPE_ACTION_STATE_ACTIONING }Enumerates the swipe action item states of list items.
ArkUI_ListItemSwipeEdgeEffect { ARKUI_LIST_ITEM_SWIPE_EDGE_EFFECT_SPRING = 0, ARKUI_LIST_ITEM_SWIPE_EDGE_EFFECT_NONE }Enumerates the swipe action item edge effects of list items.
ArkUI_AnimationStatus { ARKUI_ANIMATION_STATUS_INITIAL, ARKUI_ANIMATION_STATUS_RUNNING, ARKUI_ANIMATION_STATUS_PAUSED, ARKUI_ANIMATION_STATUS_STOPPED }Enumerates the playback states of the frame-by-frame animation.
ArkUI_AnimationFillMode { ARKUI_ANIMATION_FILL_MODE_NONE, ARKUI_ANIMATION_FILL_MODE_FORWARDS, ARKUI_ANIMATION_FILL_MODE_BACKWARDS, ARKUI_ANIMATION_FILL_MODE_BOTH }Enumerates the states before and after execution of the frame-by-frame animation.
ArkUI_ErrorCode {
ARKUI_ERROR_CODE_NO_ERROR = 0, ARKUI_ERROR_CODE_PARAM_INVALID = 401, ARKUI_ERROR_CODE_FOCUS_NON_FOCUSABLE = 150001,ARKUI_ERROR_CODE_FOCUS_NON_FOCUSABLE_ANCESTOR = 150002,ARKUI_ERROR_CODE_FOCUS_NON_EXISTENT = 150003,ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED = 106102, ARKUI_ERROR_CODE_NOT_SUPPROTED_FOR_ARKTS_NODE = 106103,
ARKUI_ERROR_CODE_NODE_ADAPTER_NONE_HOST = 106104, ARKUI_ERROR_CODE_NODE_ADAPTER_EXIST_IN_HOST = 106105, ARKUI_ERROR_CODE_NODE_ADAPTER_CHILD_NODE_EXIST = 106106, ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INDEX_OUT_OF_RANGE = 106107,
ARKUI_ERROR_CODE_NODE_EVENT_PARAM_INVALID = 106108, ARKUI_ERROR_CODE_NODE_EVENT_NO_RETURN = 106109, ARKUI_ERROR_CODE_NODE_INDEX_INVALID = 106200, ARKUI_ERROR_CODE_GET_INFO_FAILED = 106201,
ARKUI_ERROR_CODE_BUFFER_SIZE_ERROR = 106202, ARKUI_ERROR_CODE_NON_SCROLLABLE_CONTAINER = 180001, ARKUI_ERROR_CODE_BUFFER_SIZE_NOT_ENOUGH = 180002, ARKUI_ERROR_CODE_INVALID_STYLED_STRING = 180101,
ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED = 180102
}
Defines an enum for the error codes.
ArkUI_ScrollSource {
ARKUI_SCROLL_SOURCE_DRAG = 0, ARKUI_SCROLL_SOURCE_FLING, ARKUI_SCROLL_SOURCE_EDGE_EFFECT, ARKUI_SCROLL_SOURCE_OTHER_USER_INPUT,
ARKUI_SCROLL_SOURCE_SCROLL_BAR, ARKUI_SCROLL_SOURCE_SCROLL_BAR_FLING, ARKUI_SCROLL_SOURCE_SCROLLER, ARKUI_SCROLL_SOURCE_ANIMATION
}
Defines an enum for the scroll sources.
ArkUI_SafeAreaType { ARKUI_SAFE_AREA_TYPE_SYSTEM = 1, ARKUI_SAFE_AREA_TYPE_CUTOUT = 1 << 1, ARKUI_SAFE_AREA_TYPE_KEYBOARD = 1 << 2 }Defines an enum for the types of expanded safe areas.
ArkUI_SafeAreaEdge { ARKUI_SAFE_AREA_EDGE_TOP = 1, ARKUI_SAFE_AREA_EDGE_BOTTOM = 1 << 1, ARKUI_SAFE_AREA_EDGE_START = 1 << 2, ARKUI_SAFE_AREA_EDGE_END = 1 << 3 }Enumerates the edges for expanding the safe area.
ARKUI_FOCUSMOVE { ARKUI_FOCUS_MOVE_FORWARD = 0, ARKUI_FOCUS_MOVE_BACKWARD, ARKUI_FOCUS_MOVE_UP, ARKUI_FOCUS_MOVE_DOWN, ARKUI_FOCUS_MOVE_LEFT, ARKUI_FOCUS_MOVE_RIGHT, }Enumerates the focus movement directions.
ArkUI_NavDestinationState {
ARKUI_NAV_DESTINATION_STATE_ON_SHOW = 0, ARKUI_NAV_DESTINATION_STATE_ON_HIDE = 1, ARKUI_NAV_DESTINATION_STATE_ON_APPEAR = 2, ARKUI_NAV_DESTINATION_STATE_ON_DISAPPEAR = 3,
ARKUI_NAV_DESTINATION_STATE_ON_WILL_SHOW = 4, ARKUI_NAV_DESTINATION_STATE_ON_WILL_HIDE = 5, ARKUI_NAV_DESTINATION_STATE_ON_WILL_APPEAR = 6, ARKUI_NAV_DESTINATION_STATE_ON_WILL_DISAPPEAR = 7,
ARKUI_NAV_DESTINATION_STATE_ON_BACK_PRESS = 100
}
Defines an enum for the NavDestination component states.
ArkUI_RouterPageState {
ARKUI_ROUTER_PAGE_STATE_ON_WILL_APPEAR = 0, ARKUI_ROUTER_PAGE_STATE_ON_WILL_DISAPPEAR = 1, ARKUI_ROUTER_PAGE_STATE_ON_SHOW = 2, ARKUI_ROUTER_PAGE_STATE_ON_HIDE = 3,
ARKUI_ROUTER_PAGE_STATE_ON_BACK_PRESS = 4
}
Defines an enum for the router page states.
ArkUI_DatePickerMode {
ARKUI_DATEPICKER_MODE_DATE = 0, ARKUI_DATEPICKER_YEAR_AND_MONTH = 1, ARKUI_DATEPICKER_MONTH_AND_DAY = 2
}
Enumerates the column display modes of the date picker.

Functions

NameDescription
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

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/FnJzRf