Skip to main content

ArkUINode

Struct ArkUINode 

Source
pub struct ArkUINode { /* private fields */ }
Expand description

High-level ArkUI node wrapper used by component APIs.

Implementations§

Source§

impl ArkUINode

Source

pub fn raw_handle(&self) -> ArkUI_NodeHandle

Returns the native ArkUI node handle.

Source

pub fn children(&self) -> &[Rc<RefCell<ArkUINode>>]

Immutable children view.

Source

pub fn children_mut(&mut self) -> &mut Vec<Rc<RefCell<ArkUINode>>>

Mutable children view.

Source

pub fn from_raw_handle(raw: ArkUI_NodeHandle) -> Option<Self>

Source

pub fn dispose(&mut self) -> ArkUIResult<()>

Clear dom We can’t use drop impl, because it will be called when the object is dropped.

Source

pub fn animate_to(&self, animation: &Animation) -> ArkUIResult<()>

Runs an explicit ArkUI animation update against this node.

Source

pub fn layout_size(&self) -> ArkUIResult<IntSize>

Returns the layout size measured for this node.

Source

pub fn layout_position_in_window(&self) -> ArkUIResult<IntOffset>

Returns this node’s layout position in the current window.

Source

pub fn position_with_translate_in_window(&self) -> ArkUIResult<IntOffset>

Returns this node’s translated position in the current window.

Source

pub fn mark_dirty(&self, dirty_flag: NodeDirtyFlag) -> ArkUIResult<()>

Mark this node dirty so ArkUI recomputes the requested render pipeline stage.

Trait Implementations§

Source§

impl ArkUIAttributeBasic for ArkUINode

Source§

fn raw(&self) -> &ArkUINode

Make sure every node can get ArkUINode for built-in method with current trait
Source§

fn borrow_mut(&mut self) -> &mut ArkUINode

Source§

impl ArkUICommonAttribute for ArkUINode

Source§

fn set_attribute( &self, attribute: ArkUINodeAttributeType, value: ArkUINodeAttributeItem, ) -> ArkUIResult<()>

Source§

fn get_attribute( &self, attribute: ArkUINodeAttributeType, ) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn reset_attribute(&self, attribute: ArkUINodeAttributeType) -> ArkUIResult<()>

Source§

fn set_number_attribute( &self, attribute: ArkUINodeAttributeType, values: Vec<ArkUINodeAttributeNumber>, ) -> ArkUIResult<()>

Source§

fn set_i32_attribute( &self, attribute: ArkUINodeAttributeType, value: i32, ) -> ArkUIResult<()>

Source§

fn set_u32_attribute( &self, attribute: ArkUINodeAttributeType, value: u32, ) -> ArkUIResult<()>

Source§

fn set_f32_attribute( &self, attribute: ArkUINodeAttributeType, value: f32, ) -> ArkUIResult<()>

Source§

fn set_bool_attribute( &self, attribute: ArkUINodeAttributeType, value: bool, ) -> ArkUIResult<()>

Source§

fn set_string_attribute<T: Into<String>>( &self, attribute: ArkUINodeAttributeType, value: T, ) -> ArkUIResult<()>

Source§

fn set_object_attribute( &self, attribute: ArkUINodeAttributeType, value: *mut c_void, ) -> ArkUIResult<()>

Source§

fn width(&self, width: f32) -> ArkUIResult<()>

Set node height
Source§

fn height(&self, height: f32) -> ArkUIResult<()>

Set node height
Source§

fn percent_width(&self, width: f32) -> ArkUIResult<()>

Set percent width
Source§

fn percent_height(&self, height: f32) -> ArkUIResult<()>

Set percent height
Source§

fn background_color(&self, color: u32) -> ArkUIResult<()>

Set background-color
Source§

fn opacity(&self, opacity: f32) -> ArkUIResult<()>

Source§

fn enabled(&self, enabled: bool) -> ArkUIResult<()>

Source§

fn id<T: Into<String>>(&self, id: T) -> ArkUIResult<()>

Source§

fn z_index(&self, z_index: i32) -> ArkUIResult<()>

Source§

fn set_background_image<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_background_image(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_padding<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_padding(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_margin<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_margin(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_translate<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_translate(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_scale<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_scale(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_rotate<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_rotate(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_brightness<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_brightness(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_saturation<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_saturation(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_blur<T: Into<ArkUINodeAttributeItem>>(&self, value: T) -> ArkUIResult<()>

Source§

fn get_blur(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_linear_gradient<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_linear_gradient(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_alignment<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_alignment(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_width<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_width(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_radius<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_radius(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_color<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_color(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_style<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_style(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_visibility<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_visibility(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_clip<T: Into<ArkUINodeAttributeItem>>(&self, value: T) -> ArkUIResult<()>

Source§

fn get_clip(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_clip_shape<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_clip_shape(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_transform<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_transform(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_hit_test_behavior<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_hit_test_behavior(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_position<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_position(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_shadow<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_shadow(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_custom_shadow<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_custom_shadow(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_background_image_size<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_background_image_size(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_background_image_size_with_style<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_background_image_size_with_style( &self, ) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_background_blur_style<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_background_blur_style(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_transform_center<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_transform_center(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_opacity_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_opacity_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_rotate_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_rotate_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_scale_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_scale_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_translate_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_translate_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_move_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_move_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_focusable<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_focusable(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_default_focus<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_default_focus(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_response_region<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_response_region(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_overlay<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_overlay(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn reset_overlay(&self) -> ArkUIResult<()>

Source§

fn set_sweep_gradient<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_sweep_gradient(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_radial_gradient<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_radial_gradient(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_mask<T: Into<ArkUINodeAttributeItem>>(&self, value: T) -> ArkUIResult<()>

Source§

fn get_mask(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_blend_mode<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_blend_mode(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_direction<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_direction(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_constraint_size<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_constraint_size(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_gray_scale<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_gray_scale(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_invert<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_invert(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_sepia<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_sepia(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_contrast<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_contrast(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_foreground_color<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_foreground_color(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_offset<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_offset(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_mark_anchor<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_mark_anchor(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_background_image_position<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_background_image_position(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_align_rules<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_align_rules(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_align_self<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_align_self(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_group<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_group(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_text<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_text(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_mode<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_mode(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_description<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_description(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_focus_status<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_focus_status(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_aspect_ratio<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_aspect_ratio(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_layout_weight<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_layout_weight(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_display_priority<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_display_priority(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_outline_width<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_outline_width(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_padding_percent<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_padding_percent(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_margin_percent<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_margin_percent(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_geometry_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_geometry_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_relative_layout_chain_mode<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_relative_layout_chain_mode(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_render_fit<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_render_fit(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_outline_color<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_outline_color(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_size<T: Into<ArkUINodeAttributeItem>>(&self, value: T) -> ArkUIResult<()>

Source§

fn get_size(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_render_group<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_render_group(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_color_blend<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_color_blend(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_foreground_blur_style<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_foreground_blur_style(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_layout_rect<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_layout_rect(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_focus_on_touch<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_focus_on_touch(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_width_percent<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_width_percent(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_border_radius_percent<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_border_radius_percent(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_id<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_id(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_actions<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_actions(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_role<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_role(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_state<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_state(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_accessibility_value<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_accessibility_value(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_expand_safe_area<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_expand_safe_area(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_visible_area_change_ratio<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_visible_area_change_ratio(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_transition<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_transition(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_unique_id<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_unique_id(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_focus_box<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_focus_box(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn set_click_distance<T: Into<ArkUINodeAttributeItem>>( &self, value: T, ) -> ArkUIResult<()>

Source§

fn get_click_distance(&self) -> ArkUIResult<ArkUINodeAttributeItem>

Source§

fn remove_child( &mut self, index: usize, ) -> ArkUIResult<Option<Rc<RefCell<ArkUINode>>>>

Remove child node
Source§

fn add_child<T: Into<ArkUINode>>(&mut self, child: T) -> ArkUIResult<()>

Source§

fn add_existing_child<T: Into<ArkUINode>>( &mut self, child: T, ) -> ArkUIResult<()>

Add an externally-owned child node without installing native event receiver state. Read more
Source§

fn insert_child<T: Into<ArkUINode>>( &mut self, child: T, index: usize, ) -> ArkUIResult<()>

Source§

fn insert_existing_child<T: Into<ArkUINode>>( &mut self, child: T, index: usize, ) -> ArkUIResult<()>

Insert an externally-owned child node without installing native event receiver state.
Source§

impl Clone for ArkUINode

Source§

fn clone(&self) -> ArkUINode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ArkUINode

This implementation just for event and animation to use it. When you need to create a new node, you should add raw and tag at the same time.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<Button> for ArkUINode

Source§

fn from(node: Button) -> Self

Converts to this type from the input type.
Source§

impl From<CalendarPicker> for ArkUINode

Source§

fn from(node: CalendarPicker) -> Self

Converts to this type from the input type.
Source§

impl From<Checkbox> for ArkUINode

Source§

fn from(node: Checkbox) -> Self

Converts to this type from the input type.
Source§

impl From<Column> for ArkUINode

Source§

fn from(node: Column) -> Self

Converts to this type from the input type.
Source§

impl From<Custom> for ArkUINode

Source§

fn from(node: Custom) -> Self

Converts to this type from the input type.
Source§

impl From<CustomSpan> for ArkUINode

Source§

fn from(node: CustomSpan) -> Self

Converts to this type from the input type.
Source§

impl From<DatePicker> for ArkUINode

Source§

fn from(node: DatePicker) -> Self

Converts to this type from the input type.
Source§

impl From<Flex> for ArkUINode

Source§

fn from(node: Flex) -> Self

Converts to this type from the input type.
Source§

impl From<FlowItem> for ArkUINode

Source§

fn from(node: FlowItem) -> Self

Converts to this type from the input type.
Source§

impl From<Grid> for ArkUINode

Source§

fn from(node: Grid) -> Self

Converts to this type from the input type.
Source§

impl From<GridItem> for ArkUINode

Source§

fn from(node: GridItem) -> Self

Converts to this type from the input type.
Source§

impl From<Image> for ArkUINode

Source§

fn from(node: Image) -> Self

Converts to this type from the input type.
Source§

impl From<ImageAnimator> for ArkUINode

Source§

fn from(node: ImageAnimator) -> Self

Converts to this type from the input type.
Source§

impl From<ImageSpan> for ArkUINode

Source§

fn from(node: ImageSpan) -> Self

Converts to this type from the input type.
Source§

impl From<List> for ArkUINode

Source§

fn from(node: List) -> Self

Converts to this type from the input type.
Source§

impl From<ListItem> for ArkUINode

Source§

fn from(node: ListItem) -> Self

Converts to this type from the input type.
Source§

impl From<ListItemGroup> for ArkUINode

Source§

fn from(node: ListItemGroup) -> Self

Converts to this type from the input type.
Source§

impl From<LoadingProgress> for ArkUINode

Source§

fn from(node: LoadingProgress) -> Self

Converts to this type from the input type.
Source§

impl From<Progress> for ArkUINode

Source§

fn from(node: Progress) -> Self

Converts to this type from the input type.
Source§

impl From<Radio> for ArkUINode

Source§

fn from(node: Radio) -> Self

Converts to this type from the input type.
Source§

impl From<Refresh> for ArkUINode

Source§

fn from(node: Refresh) -> Self

Converts to this type from the input type.
Source§

impl From<RelativeContainer> for ArkUINode

Source§

fn from(node: RelativeContainer) -> Self

Converts to this type from the input type.
Source§

impl From<Row> for ArkUINode

Source§

fn from(node: Row) -> Self

Converts to this type from the input type.
Source§

impl From<Scroll> for ArkUINode

Source§

fn from(node: Scroll) -> Self

Converts to this type from the input type.
Source§

impl From<Slider> for ArkUINode

Source§

fn from(node: Slider) -> Self

Converts to this type from the input type.
Source§

impl From<Span> for ArkUINode

Source§

fn from(node: Span) -> Self

Converts to this type from the input type.
Source§

impl From<Stack> for ArkUINode

Source§

fn from(node: Stack) -> Self

Converts to this type from the input type.
Source§

impl From<Swiper> for ArkUINode

Source§

fn from(node: Swiper) -> Self

Converts to this type from the input type.
Source§

impl From<Text> for ArkUINode

Source§

fn from(node: Text) -> Self

Converts to this type from the input type.
Source§

impl From<TextArea> for ArkUINode

Source§

fn from(node: TextArea) -> Self

Converts to this type from the input type.
Source§

impl From<TextInput> for ArkUINode

Source§

fn from(node: TextInput) -> Self

Converts to this type from the input type.
Source§

impl From<TextPicker> for ArkUINode

Source§

fn from(node: TextPicker) -> Self

Converts to this type from the input type.
Source§

impl From<TimePicker> for ArkUINode

Source§

fn from(node: TimePicker) -> Self

Converts to this type from the input type.
Source§

impl From<Toggle> for ArkUINode

Source§

fn from(node: Toggle) -> Self

Converts to this type from the input type.
Source§

impl From<WaterFlow> for ArkUINode

Source§

fn from(node: WaterFlow) -> Self

Converts to this type from the input type.
Source§

impl From<XComponent> for ArkUINode

Source§

fn from(node: XComponent) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.