leanshot/src/lib.rs

28 lines
408 B
Rust
Raw Normal View History

2018-09-10 06:52:54 +00:00
#[macro_use]
extern crate failure;
2018-09-10 08:15:42 +00:00
extern crate png;
2018-09-10 06:52:54 +00:00
#[macro_use]
extern crate structopt;
extern crate time;
2018-09-11 01:31:25 +00:00
extern crate xlib;
2018-09-10 06:52:54 +00:00
mod capture;
mod errors;
mod gui;
mod image;
mod options;
use structopt::StructOpt;
2018-09-10 08:15:42 +00:00
pub use capture::capture;
2018-09-11 01:31:25 +00:00
pub use image::ImageExt;
2018-09-10 08:15:42 +00:00
pub use options::Options;
2018-09-10 06:52:54 +00:00
2018-09-11 01:31:25 +00:00
#[derive(Debug)]
2018-09-10 06:52:54 +00:00
pub struct Rectangle {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}