Struct smithay_client_toolkit::output::OutputMgr [−][src]
pub struct OutputMgr { /* fields omitted */ }An utility tracking the available outputs and their capabilities
Methods
impl OutputMgr[src]
impl OutputMgrpub fn find_id<F, T>(&self, id: u32, f: F) -> Option<T> where
F: FnOnce(&Proxy<WlOutput>, &OutputInfo) -> T, [src]
pub fn find_id<F, T>(&self, id: u32, f: F) -> Option<T> where
F: FnOnce(&Proxy<WlOutput>, &OutputInfo) -> T, Access the information of a specific output from its global id
If the requested ouput is not found (likely because it has been destroyed)
the closure is not called and None is returned.
pub fn with_info<F, T>(&self, output: &Proxy<WlOutput>, f: F) -> Option<T> where
F: FnOnce(u32, &OutputInfo) -> T, [src]
pub fn with_info<F, T>(&self, output: &Proxy<WlOutput>, f: F) -> Option<T> where
F: FnOnce(u32, &OutputInfo) -> T, Access the information of a specific output
If the requested ouput is not found (likely because it has been destroyed)
the closure is not called and None is returned.
pub fn with_all<F, T>(&self, f: F) -> T where
F: FnOnce(&[(u32, Proxy<WlOutput>, OutputInfo)]) -> T, [src]
pub fn with_all<F, T>(&self, f: F) -> T where
F: FnOnce(&[(u32, Proxy<WlOutput>, OutputInfo)]) -> T, Access all output information