pub trait AsEventContext {
// Required method
fn as_event_context(&mut self) -> EventContext<'_>;
// Provided methods
fn push_child(&mut self, child: WidgetInstance) -> MountedWidget { ... }
fn remove_child(&mut self, child: &MountedWidget) { ... }
}
Expand description
Converts from one context to an EventContext
.
Required Methods§
sourcefn as_event_context(&mut self) -> EventContext<'_>
fn as_event_context(&mut self) -> EventContext<'_>
Returns this context as an EventContext
.
Provided Methods§
sourcefn push_child(&mut self, child: WidgetInstance) -> MountedWidget
fn push_child(&mut self, child: WidgetInstance) -> MountedWidget
Pushes a new child widget into the widget hierarchy beneathq the context’s widget.
sourcefn remove_child(&mut self, child: &MountedWidget)
fn remove_child(&mut self, child: &MountedWidget)
Removes a widget from the hierarchy.