MCPcopy Create free account
hub / github.com/Recordscript/recordscript / TraitCapturer

Interface TraitCapturer

libs/scrap/src/common/mod.rs:104–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104pub trait TraitCapturer {
105 // We doesn't support
106 #[cfg(not(any(target_os = "ios")))]
107 fn frame<'a>(&'a mut self, timeout: std::time::Duration) -> std::io::Result<Frame<'a>>;
108
109 #[cfg(windows)]
110 fn is_gdi(&self) -> bool;
111 #[cfg(windows)]
112 fn set_gdi(&mut self) -> bool;
113
114 #[cfg(feature = "vram")]
115 fn device(&self) -> AdapterDevice;
116
117 #[cfg(feature = "vram")]
118 fn set_output_texture(&mut self, texture: bool);
119}
120
121#[derive(Debug, Clone, Copy)]
122pub struct AdapterDevice {

Callers

nothing calls this directly

Implementers 6

quartz.rslibs/scrap/src/common/quartz.rs
wayland.rslibs/scrap/src/common/wayland.rs
dxgi.rslibs/scrap/src/common/dxgi.rs
linux.rslibs/scrap/src/common/linux.rs
android.rslibs/scrap/src/common/android.rs
x11.rslibs/scrap/src/common/x11.rs

Calls

no outgoing calls

Tested by

no test coverage detected