win64 0.0.4

Hand-crafted, idiomatic Rust wrappers for Win32
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use windows_sys::Win32::Foundation::POINT;

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Point {
  pub x: i32,
  pub y: i32,
}

impl From<POINT> for Point {
  fn from(value: POINT) -> Self {
    Self { x: value.x, y: value.y }
  }
}