Create a new configuration with sensible defaults. 使用合理的默认值创建新配置。
()
| 67 | /// Create a new configuration with sensible defaults. |
| 68 | /// 使用合理的默认值创建新配置。 |
| 69 | pub fn new() -> Self { |
| 70 | Self { |
| 71 | width: None, |
| 72 | height: None, |
| 73 | fps: None, |
| 74 | pixel_format: None, |
| 75 | buffer_count: 5, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /// Set the desired resolution. |
| 80 | /// 设置期望的分辨率。 |
nothing calls this directly
no outgoing calls
no test coverage detected