Lines Matching refs:custom
4 …custom UI components through NDK APIs, including custom measurement, layout, and drawing. You can …
9 …native_node_a_p_i__1.md#registernodecustomevent) to declare the required custom event types; liste…
11 …__1.md#unregisternodecustomevent) to notify the ArkUI framework that the custom component events t…
17 …de_a_p_i__1.md#setlayoutposition)) can only be used in the corresponding custom event callbacks ([…
22 The following example creates a custom container that uses the maximum size of its child components…
30 2. Create an encapsulated object for the custom container component.
33 // Example of a custom container component
44 // Create the component using the custom component type ARKUI_NODE_CUSTOM.
47 // Register the custom event listener.
49 // Declare the custom event and pass itself as custom data.
55 // Deregister the custom event listener.
57 // Undeclare the custom event.
64 …// To update a custom property event, you need to proactively call the API for marking the dirty r…
141 3. Use the custom container to create a sample UI with text, and continue with the [timer module si…
167 // Create a custom container and text component.
199 …e following example creates a custom drawing component that can draw a custom rectangle and uses t…
205 1. Prepare a project as instructed in [Custom Layout Container](#custom-layout-container).
207 2. Create an encapsulated object for the custom drawing component.
210 // Example of a custom drawing component
225 // Create the component using the custom component type ARKUI_NODE_CUSTOM.
228 // Register the custom event listener.
230 // Declare the custom event and pass itself as custom data.
235 // Deregister the custom event listener.
237 // Undeclare the custom event.
268 // Draw custom content.
293 3. Create a sample UI using the custom drawing component and the custom container, and continue wit…
319 // Create a custom container and a custom drawing component.