get
Iterates the subwindows from the top of the stack (last item in the array)
Parameters
- self:*Subwindows
- *Subwindows
- id:Id
- Id
Source
Implementation
pub fn get(self: *Subwindows, id: Id) ?*Subwindow {
var i = self.stack.items.len;
while (i > 0) : (i -= 1) {
const sw = &self.stack.items[i - 1];
if (sw.id == id) return sw;
}
return null;
}