Commit 4022ecd9 authored by Florian Blasius's avatar Florian Blasius 🤘

Merge branch 'master' into window-refactoring

parents d37aff01 107003ba
Pipeline #4041 passed with stages
in 10 minutes and 22 seconds
......@@ -41,6 +41,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