portlight 0.0.2

Cross-platform window management for audio plugins
Documentation
use std::fmt;

mod display_links;
mod event_loop;
mod surface;
mod timer;
mod window;

pub use event_loop::EventLoopState;
pub use timer::TimerState;
pub use window::WindowState;

#[derive(Debug)]
pub enum OsError {
    Other(&'static str),
}

impl fmt::Display for OsError {
    fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
        match self {
            OsError::Other(err) => write!(fmt, "{}", err),
        }
    }
}