chore: Clean up win32 and x11

This commit is contained in:
notgull 2022-12-21 17:26:09 -08:00 committed by Jeremy Soller
parent abfb2ac4f9
commit 300a4d819a
3 changed files with 122 additions and 33 deletions

View file

@ -3,6 +3,7 @@ use raw_window_handle::{RawDisplayHandle, RawWindowHandle};
use thiserror::Error;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum SwBufError {
#[error(
"The provided window returned an unsupported platform: {human_readable_window_platform_name}, {human_readable_display_platform_name}."
@ -13,6 +14,13 @@ pub enum SwBufError {
window_handle: RawWindowHandle,
display_handle: RawDisplayHandle
},
#[error("The provided window handle is null.")]
IncompleteWindowHandle,
#[error("The provided display handle is null.")]
IncompleteDisplayHandle,
#[error("Platform error")]
PlatformError(Option<String>, Option<Box<dyn Error>>)
}