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

Add access to window widget.

parent 1474ea1c
......@@ -45,6 +45,11 @@ impl<'a> Context<'a> {
pub fn widget(&mut self) -> WidgetContainer<'_> {
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.
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