Skip to content

Commit e14d9c7

Browse files
committed
Remove error handling and HDC wrapper modules; rename Window to Overlay in overlay module
1 parent 3df8eba commit e14d9c7

File tree

5 files changed

+4
-36
lines changed

5 files changed

+4
-36
lines changed

src/error.rs

-14
This file was deleted.

src/hdc_wrapper.rs

-13
This file was deleted.

src/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
pub mod error;
2-
pub mod hdc_wrapper;
31
pub mod overlay;
4-
5-
pub use error::*;
6-
pub use hdc_wrapper::*;
72
pub use overlay::*;

src/overlay.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use windows::{
66
Win32::UI::WindowsAndMessaging::*,
77
};
88

9-
pub struct Window {
9+
pub struct Overlay {
1010
handle: HWND,
1111

1212
window_rect: RECT,
@@ -22,7 +22,7 @@ pub struct Window {
2222
visible: bool,
2323
}
2424

25-
impl Window {
25+
impl Overlay {
2626
pub fn new(
2727
left: i32,
2828
top: i32,
@@ -34,7 +34,7 @@ impl Window {
3434
let factory = create_factory()?;
3535
let style = create_style(&factory)?;
3636

37-
Ok(Window {
37+
Ok(Overlay {
3838
handle: Default::default(),
3939
window_rect: RECT {
4040
left,

tests/overlay_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn overlay_test() {
1919
let rect_list = rect_list.clone();
2020
std::thread::spawn(move || {
2121
let mut overlay =
22-
windows_ez_overlay::Window::new(0, 0, 1920, 1080, rect_list, true).unwrap();
22+
windows_ez_overlay::Overlay::new(0, 0, 1920, 1080, rect_list, true).unwrap();
2323
overlay.run().unwrap();
2424
});
2525
}

0 commit comments

Comments
 (0)