pub struct MatchWidgetChild(/* private fields */);Expand description
Child node of match_widget.
This node delegates like MatchNodeChild plus delegates UiNode::as_widget.
Methods from Deref<Target = MatchNodeChild>§
Sourcepub fn delegated(&mut self)
pub fn delegated(&mut self)
Flags the current operation as delegated, stopping the default delegation after the closure ends.
Note that each node operation methods already flags this.
Sourcepub fn has_delegated(&self) -> bool
pub fn has_delegated(&self) -> bool
If the current operation was already delegated to the child.
Sourcepub fn node(&mut self) -> &mut UiNode
pub fn node(&mut self) -> &mut UiNode
Borrow the actual child.
Note that if you delegate using this reference you must call delegated.
Sourcepub fn node_impl<U: UiNodeImpl>(&mut self) -> &mut U
pub fn node_impl<U: UiNodeImpl>(&mut self) -> &mut U
Sourcepub fn init(&mut self)
pub fn init(&mut self)
Delegate UiNode::init.
Sourcepub fn deinit(&mut self)
pub fn deinit(&mut self)
Delegate UiNode::deinit.
Sourcepub fn info(&mut self, info: &mut WidgetInfoBuilder)
pub fn info(&mut self, info: &mut WidgetInfoBuilder)
Delegate UiNode::info.
Sourcepub fn event(&mut self, update: &EventUpdate)
pub fn event(&mut self, update: &EventUpdate)
Delegate UiNode::event.
Sourcepub fn update(&mut self, updates: &WidgetUpdates)
pub fn update(&mut self, updates: &WidgetUpdates)
Delegate UiNode::update.
Sourcepub fn update_list(
&mut self,
updates: &WidgetUpdates,
observer: &mut dyn UiNodeListObserver,
)
pub fn update_list( &mut self, updates: &WidgetUpdates, observer: &mut dyn UiNodeListObserver, )
Delegate UiNode::update_list.
Sourcepub fn measure(&mut self, wm: &mut WidgetMeasure) -> PxSize
pub fn measure(&mut self, wm: &mut WidgetMeasure) -> PxSize
Delegate UiNode::measure.
Sourcepub fn measure_list(
&mut self,
wm: &mut WidgetMeasure,
measure: impl Fn(usize, &mut UiNode, &mut WidgetMeasure) -> PxSize + Sync,
fold_size: impl Fn(PxSize, PxSize) -> PxSize + Sync,
) -> PxSize
pub fn measure_list( &mut self, wm: &mut WidgetMeasure, measure: impl Fn(usize, &mut UiNode, &mut WidgetMeasure) -> PxSize + Sync, fold_size: impl Fn(PxSize, PxSize) -> PxSize + Sync, ) -> PxSize
Delegate UiNode::measure_list.
Sourcepub fn layout(&mut self, wl: &mut WidgetLayout) -> PxSize
pub fn layout(&mut self, wl: &mut WidgetLayout) -> PxSize
Delegate UiNode::layout.
Sourcepub fn layout_list(
&mut self,
wl: &mut WidgetLayout,
layout: impl Fn(usize, &mut UiNode, &mut WidgetLayout) -> PxSize + Sync,
fold_size: impl Fn(PxSize, PxSize) -> PxSize + Sync,
) -> PxSize
pub fn layout_list( &mut self, wl: &mut WidgetLayout, layout: impl Fn(usize, &mut UiNode, &mut WidgetLayout) -> PxSize + Sync, fold_size: impl Fn(PxSize, PxSize) -> PxSize + Sync, ) -> PxSize
Delegate UiNode::layout_list.
Sourcepub fn render(&mut self, frame: &mut FrameBuilder)
pub fn render(&mut self, frame: &mut FrameBuilder)
Delegate UiNode::render.
Sourcepub fn render_list(
&mut self,
frame: &mut FrameBuilder,
render: impl Fn(usize, &mut UiNode, &mut FrameBuilder) + Sync,
)
pub fn render_list( &mut self, frame: &mut FrameBuilder, render: impl Fn(usize, &mut UiNode, &mut FrameBuilder) + Sync, )
Delegate UiNode::render_list.
Sourcepub fn render_update(&mut self, update: &mut FrameUpdate)
pub fn render_update(&mut self, update: &mut FrameUpdate)
Delegate UiNode::render_update.
Sourcepub fn render_update_list(
&mut self,
update: &mut FrameUpdate,
render_update: impl Fn(usize, &mut UiNode, &mut FrameUpdate) + Sync,
)
pub fn render_update_list( &mut self, update: &mut FrameUpdate, render_update: impl Fn(usize, &mut UiNode, &mut FrameUpdate) + Sync, )
Delegate UiNode::render_update_list.
Sourcepub fn op(&mut self, op: UiNodeOp<'_>)
pub fn op(&mut self, op: UiNodeOp<'_>)
Delegate UiNode::op.
Trait Implementations§
Source§impl Deref for MatchWidgetChild
impl Deref for MatchWidgetChild
Auto Trait Implementations§
impl Freeze for MatchWidgetChild
impl !RefUnwindSafe for MatchWidgetChild
impl Send for MatchWidgetChild
impl !Sync for MatchWidgetChild
impl Unpin for MatchWidgetChild
impl !UnwindSafe for MatchWidgetChild
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more