button.h

Phone12+PC/2in113+Tablet12+TV19+Wearable18+

Overview

Defines Button node types for NativeNode APIs.

File to include: <arkui/node_attributes/button.h>

Library: libace_ndk.z.so

System capability: SystemCapability.ArkUI.ArkUI.Full

Since: 12

Related module: ArkUI_NativeModule

Sample: NativeTypeSample

Summary

Enums

Expand
Name typedef Keyword Description
ArkUI_ButtonType ArkUI_ButtonType Enumerates the button types.

Enum Description

ArkUI_ButtonType

Phone12+PC/2in113+Tablet12+TV19+Wearable18+
enum ArkUI_ButtonType

Description

Enumerates the button types.

Since: 12

Expand
Value Description
ARKUI_BUTTON_TYPE_NORMAL = 0 Normal button (without rounded corners by default).
ARKUI_BUTTON_TYPE_CAPSULE = 1 Capsule-type button (the round corner is half of the height by default).
ARKUI_BUTTON_TYPE_CIRCLE = 2 Circle button.
ARKUI_BUTTON_ROUNDED_RECTANGLE = 8

Rounded rectangle button.

Since: 19

Search
Enter a keyword.