| 102 | } |
| 103 | |
| 104 | pub 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)] |
| 122 | pub struct AdapterDevice { |
nothing calls this directly
no outgoing calls
no test coverage detected