Commit 107003ba authored by Florian Blasius's avatar Florian Blasius 🤘

Add access to window widget.

parent 1474ea1c
......@@ -46,6 +46,11 @@ impl<'a> Context<'a> {
WidgetContainer::new(self.entity, &mut self.ecm)
}
/// Returns the window widget.
pub fn window(&mut self) -> WidgetContainer<'_> {
WidgetContainer::new(0, &mut self.ecm)
}
/// Returns a child of the widget of the current state referenced by css `id`.
/// If the no id is defined None will returned.
pub fn child_by_id<S: Into<String>>(&mut self, id: S) -> Option<WidgetContainer<'_>> {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment