cushy::context

Trait AsEventContext

Source
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§

Source

fn as_event_context(&mut self) -> EventContext<'_>

Returns this context as an EventContext.

Provided Methods§

Source

fn push_child(&mut self, child: WidgetInstance) -> MountedWidget

Pushes a new child widget into the widget hierarchy beneathq the context’s widget.

Source

fn remove_child(&mut self, child: &MountedWidget)

Removes a widget from the hierarchy.

Implementors§