-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
#[repr(C)] | ||
#[derive(Clone, Copy, Debug, Default, PartialEq)] | ||
pub struct InkTrailPoint { | ||
pub Point: Point, | ||
pub Radius: f32, | ||
} | ||
impl windows_core::TypeKind for InkTrailPoint { | ||
type TypeKind = windows_core::CopyType; | ||
} | ||
impl windows_core::RuntimeType for InkTrailPoint { | ||
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( | ||
b"struct(Windows.UI.Composition.InkTrailPoint;struct(Windows.Foundation.Point;f4;f4);f4)", | ||
); | ||
} | ||
#[repr(C)] | ||
#[derive(Clone, Copy, Debug, Default, PartialEq)] | ||
pub struct Point { | ||
pub X: f32, | ||
pub Y: f32, | ||
} | ||
impl windows_core::TypeKind for Point { | ||
type TypeKind = windows_core::CopyType; | ||
} | ||
impl windows_core::RuntimeType for Point { | ||
const SIGNATURE: windows_core::imp::ConstBuffer = | ||
windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Foundation.Point;f4;f4)"); | ||
} |
22 changes: 22 additions & 0 deletions
22
crates/tests/bindgen/src/reference_struct_reference_namespace.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
#[repr(C)] | ||
#[derive(Clone, Copy, Debug, Default, PartialEq)] | ||
pub struct InkTrailPoint { | ||
pub Point: windows::Foundation::Point, | ||
pub Radius: f32, | ||
} | ||
impl windows_core::TypeKind for InkTrailPoint { | ||
type TypeKind = windows_core::CopyType; | ||
} | ||
impl windows_core::RuntimeType for InkTrailPoint { | ||
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( | ||
b"struct(Windows.UI.Composition.InkTrailPoint;struct(Windows.Foundation.Point;f4;f4);f4)", | ||
); | ||
} |
22 changes: 22 additions & 0 deletions
22
crates/tests/bindgen/src/reference_struct_reference_type.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
#[repr(C)] | ||
#[derive(Clone, Copy, Debug, Default, PartialEq)] | ||
pub struct InkTrailPoint { | ||
pub Point: windows::Foundation::Point, | ||
pub Radius: f32, | ||
} | ||
impl windows_core::TypeKind for InkTrailPoint { | ||
type TypeKind = windows_core::CopyType; | ||
} | ||
impl windows_core::RuntimeType for InkTrailPoint { | ||
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice( | ||
b"struct(Windows.UI.Composition.InkTrailPoint;struct(Windows.Foundation.Point;f4;f4);f4)", | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
pub type GAMING_DEVICE_DEVICE_ID = i32; | ||
#[repr(C)] | ||
#[derive(Clone, Copy)] | ||
pub struct GAMING_DEVICE_MODEL_INFORMATION { | ||
pub vendorId: GAMING_DEVICE_VENDOR_ID, | ||
pub deviceId: GAMING_DEVICE_DEVICE_ID, | ||
} | ||
pub type GAMING_DEVICE_VENDOR_ID = i32; |
14 changes: 14 additions & 0 deletions
14
crates/tests/bindgen/src/reference_struct_sys_reference_namespace.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
#[repr(C)] | ||
#[derive(Clone, Copy)] | ||
pub struct GAMING_DEVICE_MODEL_INFORMATION { | ||
pub vendorId: windows_sys::Win32::Gaming::GAMING_DEVICE_VENDOR_ID, | ||
pub deviceId: windows_sys::Win32::Gaming::GAMING_DEVICE_DEVICE_ID, | ||
} |
15 changes: 15 additions & 0 deletions
15
crates/tests/bindgen/src/reference_struct_sys_reference_type.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#![allow( | ||
non_snake_case, | ||
non_upper_case_globals, | ||
non_camel_case_types, | ||
dead_code, | ||
clippy::all | ||
)] | ||
|
||
pub type GAMING_DEVICE_DEVICE_ID = i32; | ||
#[repr(C)] | ||
#[derive(Clone, Copy)] | ||
pub struct GAMING_DEVICE_MODEL_INFORMATION { | ||
pub vendorId: windows_sys::Win32::Gaming::GAMING_DEVICE_VENDOR_ID, | ||
pub deviceId: GAMING_DEVICE_DEVICE_ID, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters