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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//!
//! libharuhishot, it is used for wlr-screencopy, split it because I want to help with wayshot, but
//! I also learn a lot. I like my program very much, because it makes me feel alive. Wayshot is a
//! good program, please help them.
//!
//! The lib is simple enough to use, you can take the haruhishot for example, simple useage is like
//!
//! ```rust, no_run
//! use libharuhishot::HaruhiShotState;
//! let mut state = HaruhiShotState::init().unwrap();
//! let buffer = state.capture_output_frame(
//! &state.displays[0].clone(),
//! state.display_logic_size[0],
//! state.display_transform[0],
//! None
//! ).unwrap();
//!
//! ```
//! Then you will get a [FrameInfo], There is a mmap , you can get data there
//!
//!
//!
pub use ;
pub use HaruhiShotState;
/// for user to read the state, report some object