mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-20 15:51:32 +02:00
feat(wm): initial commit
One week of blissful, in-the-zone coding, applying all of the lessons learnt from the development of yatta.
This commit is contained in:
13
bindings/Cargo.toml
Normal file
13
bindings/Cargo.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "bindings"
|
||||
version = "0.1.0"
|
||||
authors = ["Jade Iqbal"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
windows = "0.17.2"
|
||||
|
||||
[build-dependencies]
|
||||
windows = "0.17.2"
|
||||
29
bindings/build.rs
Normal file
29
bindings/build.rs
Normal file
@@ -0,0 +1,29 @@
|
||||
fn main() {
|
||||
windows::build!(
|
||||
Windows::Win32::Foundation::{
|
||||
POINT,
|
||||
RECT,
|
||||
BOOL,
|
||||
PWSTR,
|
||||
HWND,
|
||||
LPARAM,
|
||||
},
|
||||
// error: `Windows.Win32.Graphics.Dwm.DWMWA_CLOAKED` not found in metadata
|
||||
Windows::Win32::Graphics::Dwm::*,
|
||||
// error: `Windows.Win32.Graphics.Gdi.MONITOR_DEFAULTTONEAREST` not found in metadata
|
||||
Windows::Win32::Graphics::Gdi::*,
|
||||
Windows::Win32::System::Threading::{
|
||||
PROCESS_ACCESS_RIGHTS,
|
||||
PROCESS_NAME_FORMAT,
|
||||
OpenProcess,
|
||||
QueryFullProcessImageNameW,
|
||||
GetCurrentThreadId,
|
||||
AttachThreadInput,
|
||||
GetCurrentProcessId
|
||||
},
|
||||
Windows::Win32::UI::KeyboardAndMouseInput::SetFocus,
|
||||
Windows::Win32::UI::Accessibility::{SetWinEventHook, HWINEVENTHOOK},
|
||||
// error: `Windows.Win32.UI.WindowsAndMessaging.GWL_EXSTYLE` not found in metadata
|
||||
Windows::Win32::UI::WindowsAndMessaging::*,
|
||||
);
|
||||
}
|
||||
1
bindings/src/lib.rs
Normal file
1
bindings/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
::windows::include_bindings!();
|
||||
Reference in New Issue
Block a user