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>(&mut self) -> &mut Uwhere
U: UiNodeImpl,
pub fn node_impl<U>(&mut self) -> &mut Uwhere
U: UiNodeImpl,
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) -> Size2D<Px, Px>
pub fn measure(&mut self, wm: &mut WidgetMeasure) -> Size2D<Px, Px>
Delegate UiNode::measure.
Sourcepub fn measure_list(
&mut self,
wm: &mut WidgetMeasure,
measure: impl Fn(usize, &mut UiNode, &mut WidgetMeasure) -> Size2D<Px, Px> + Sync,
fold_size: impl Fn(Size2D<Px, Px>, Size2D<Px, Px>) -> Size2D<Px, Px> + Sync,
) -> Size2D<Px, Px>
pub fn measure_list( &mut self, wm: &mut WidgetMeasure, measure: impl Fn(usize, &mut UiNode, &mut WidgetMeasure) -> Size2D<Px, Px> + Sync, fold_size: impl Fn(Size2D<Px, Px>, Size2D<Px, Px>) -> Size2D<Px, Px> + Sync, ) -> Size2D<Px, Px>
Delegate UiNode::measure_list.
Sourcepub fn layout(&mut self, wl: &mut WidgetLayout) -> Size2D<Px, Px>
pub fn layout(&mut self, wl: &mut WidgetLayout) -> Size2D<Px, Px>
Delegate UiNode::layout.
Sourcepub fn layout_list(
&mut self,
wl: &mut WidgetLayout,
layout: impl Fn(usize, &mut UiNode, &mut WidgetLayout) -> Size2D<Px, Px> + Sync,
fold_size: impl Fn(Size2D<Px, Px>, Size2D<Px, Px>) -> Size2D<Px, Px> + Sync,
) -> Size2D<Px, Px>
pub fn layout_list( &mut self, wl: &mut WidgetLayout, layout: impl Fn(usize, &mut UiNode, &mut WidgetLayout) -> Size2D<Px, Px> + Sync, fold_size: impl Fn(Size2D<Px, Px>, Size2D<Px, Px>) -> Size2D<Px, Px> + Sync, ) -> Size2D<Px, Px>
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
Source§type Target = MatchNodeChild
type Target = MatchNodeChild
Source§impl DerefMut for MatchWidgetChild
impl DerefMut 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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