MCPcopy Create free account
hub / github.com/StrataWM/strata / new

Method new

src/workspaces.rs:94–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93impl Workspace {
94 pub fn new() -> Self {
95 Workspace { windows: Vec::new(), outputs: Vec::new(), layout_tree: Dwindle::new() }
96 }
97
98 pub fn windows(&self) -> impl Iterator<Item = Ref<'_, Window>> {
99 self.windows.iter().map(|w| Ref::map(w.borrow(), |hw| &hw.smithay_window))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected