pub struct NodeCustomEvent { /* private fields */ }Expand description
Wrapper for node custom-event payload delivered by ArkUI.
Implementations§
Source§impl NodeCustomEvent
impl NodeCustomEvent
Sourcepub fn layout_constraint_in_measure(&self) -> Option<LayoutConstraintHandle>
pub fn layout_constraint_in_measure(&self) -> Option<LayoutConstraintHandle>
Returns layout constraint info for measure callbacks.
Sourcepub fn position_in_layout(&self) -> IntOffset
pub fn position_in_layout(&self) -> IntOffset
Returns measured/layout position offset.
Sourcepub fn draw_context_in_draw(&self) -> Option<DrawContext>
pub fn draw_context_in_draw(&self) -> Option<DrawContext>
Returns drawing context for draw-related callbacks.
Sourcepub fn event_target_id(&self) -> i32
pub fn event_target_id(&self) -> i32
Returns target id of the event source.
Sourcepub fn user_data(&self) -> Option<NonNull<c_void>>
pub fn user_data(&self) -> Option<NonNull<c_void>>
Returns user data attached by ArkUI callback registration.
Sourcepub fn node_handle(&self) -> Option<ArkUINode>
pub fn node_handle(&self) -> Option<ArkUINode>
Returns associated node handle.
Sourcepub fn event_type(&self) -> NodeCustomEventType
pub fn event_type(&self) -> NodeCustomEventType
Returns custom event category.
pub fn get_custom_span_measure_info( &self, info: &mut CustomSpanMeasureInfo, ) -> ArkUIResult<()>
pub fn set_custom_span_metrics( &self, metrics: &mut CustomSpanMetrics, ) -> ArkUIResult<()>
pub fn get_custom_span_draw_info( &self, info: &mut CustomSpanDrawInfo, ) -> ArkUIResult<()>
Auto Trait Implementations§
impl Freeze for NodeCustomEvent
impl RefUnwindSafe for NodeCustomEvent
impl !Send for NodeCustomEvent
impl !Sync for NodeCustomEvent
impl Unpin for NodeCustomEvent
impl UnsafeUnpin for NodeCustomEvent
impl UnwindSafe for NodeCustomEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more