Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::display::*;

/// Represents a window. For browser applications, there can only be
/// a single `Window` object.
pub struct Window {
    pub(crate) root: DisplayObject,
}

impl Window {
    /// Returns the root display object of the window.
    pub fn root(&self) -> DisplayObject {
        self.root.clone()
    }
}