1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! simple
//! ======
//!
//! The simplest graphics library, inspired by LOVE2D. See the README for more information.
//!
//! Homepage: https://github.com/alexandercampbell/simple

extern crate rand;
extern crate sdl2;

// Re-export some of the symbols from the other modules.
pub use event::Event;
pub use shape::{Point, Polygon, Rect};
pub use window::{Font, Image, Window};

// rustdoc has some bugs right now and the below code works around this. Rust issue link:
// https://github.com/rust-lang/rust/issues/24305
//
// The specific issue is that renamed re-exports show up as their original names. This is a problem
// because we re-export a couple SDL2 structs under slightly different names.
pub use event::Key;
pub use event::MouseButton;

mod event;
mod shape;
mod util;
mod window;