-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat all macros with
cargo run -p windows_fmt
- Loading branch information
Showing
23 changed files
with
141 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Foundation::{MemoryBuffer, IMemoryBufferReference}, | ||
Windows::Foundation::{IMemoryBufferReference, MemoryBuffer}, | ||
Windows::Win32::System::WinRT::IMemoryBufferByteAccess, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::System::OleAutomation::BSTR, | ||
Windows::Win32::System::Com::CreateUri, | ||
Windows::Win32::System::Com::CreateUri, Windows::Win32::System::OleAutomation::BSTR, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::ApplicationModel::Core::*, | ||
Windows::UI::Core::*, | ||
}; | ||
windows::build! {Windows::ApplicationModel::Core::*, Windows::UI::Core::*}; | ||
} |
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 |
---|---|---|
@@ -1,60 +1,22 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::Graphics::Direct3D12::*, | ||
Windows::Win32::Graphics::Dxgi::*, | ||
Windows::Win32::Graphics::Direct3D11::{ | ||
D3D_FEATURE_LEVEL_11_0, | ||
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST | ||
D3D_FEATURE_LEVEL_11_0, D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, | ||
}, | ||
Windows::Win32::Graphics::Direct3D12::*, | ||
Windows::Win32::Graphics::Dxgi::*, | ||
Windows::Win32::Graphics::Hlsl::*, | ||
Windows::Win32::System::SystemServices::{GetModuleHandleA, HINSTANCE, PSTR}, | ||
Windows::Win32::System::Threading::{CreateEventA, WaitForSingleObject}, | ||
Windows::Win32::System::WindowsProgramming::INFINITE, | ||
Windows::Win32::UI::DisplayDevices::RECT, | ||
Windows::Win32::UI::WindowsAndMessaging::{ | ||
AdjustWindowRect, | ||
CREATESTRUCTA, | ||
CreateWindowExA, | ||
CS_HREDRAW, | ||
CS_VREDRAW, | ||
CW_USEDEFAULT, | ||
DefWindowProcA, | ||
DispatchMessageA, | ||
GetWindowLongA, | ||
GetWindowLongPtrA, | ||
GWLP_USERDATA, | ||
IDC_ARROW, | ||
LoadCursorW, | ||
MSG, | ||
PeekMessageA, | ||
PM_REMOVE, | ||
PostQuitMessage, | ||
RegisterClassExA, | ||
SetWindowLongA, | ||
SetWindowLongPtrA, | ||
ShowWindow, | ||
SW_SHOW, | ||
TranslateMessage, | ||
WM_CREATE, | ||
WM_DESTROY, | ||
WM_KEYDOWN, | ||
WM_KEYUP, | ||
WM_PAINT, | ||
WM_QUIT, | ||
WNDCLASS_STYLES, | ||
WNDCLASSEXA, | ||
WS_OVERLAPPEDWINDOW, | ||
}, | ||
Windows::Win32::System::SystemServices::{ | ||
GetModuleHandleA, | ||
HINSTANCE, | ||
PSTR, | ||
}, | ||
Windows::Win32::System::Threading::{ | ||
CreateEventA, | ||
WaitForSingleObject | ||
}, | ||
Windows::Win32::System::WindowsProgramming::{ | ||
INFINITE | ||
}, | ||
Windows::Win32::UI::DisplayDevices::{ | ||
RECT | ||
AdjustWindowRect, CreateWindowExA, DefWindowProcA, DispatchMessageA, GetWindowLongA, | ||
GetWindowLongPtrA, LoadCursorW, PeekMessageA, PostQuitMessage, RegisterClassExA, | ||
SetWindowLongA, SetWindowLongPtrA, ShowWindow, TranslateMessage, CREATESTRUCTA, | ||
CS_HREDRAW, CS_VREDRAW, CW_USEDEFAULT, GWLP_USERDATA, IDC_ARROW, MSG, PM_REMOVE, | ||
SW_SHOW, WM_CREATE, WM_DESTROY, WM_KEYDOWN, WM_KEYUP, WM_PAINT, WM_QUIT, WNDCLASSEXA, | ||
WNDCLASS_STYLES, WS_OVERLAPPEDWINDOW, | ||
}, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Graphics::Imaging::{SoftwareBitmap, BitmapDecoder}, | ||
Windows::Media::Ocr::{OcrEngine, OcrResult}, | ||
Windows::Storage::{FileAccessMode, StorageFile}, | ||
Windows::Foundation::IAsyncOperation, | ||
Windows::Graphics::Imaging::{BitmapDecoder, SoftwareBitmap}, | ||
Windows::Media::Ocr::{OcrEngine, OcrResult}, | ||
Windows::Storage::Streams::IRandomAccessStream, | ||
Windows::Storage::{FileAccessMode, StorageFile}, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::Storage::FileSystem::{ | ||
CreateFileA, ReadFile, FILE_GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, | ||
FILE_FLAG_OVERLAPPED, | ||
}, | ||
Windows::Win32::System::SystemServices::GetOverlappedResult, | ||
Windows::Win32::System::Threading::{ | ||
CreateEventA, WaitForSingleObject, WAIT_OBJECT_0, | ||
}, | ||
Windows::Win32::System::Diagnostics::Debug::{GetLastError, ERROR_IO_PENDING}, | ||
Windows::Win32::System::WindowsProgramming::CloseHandle, | ||
Windows::Win32::Storage::FileSystem::{ | ||
CreateFileA, ReadFile, FILE_FLAG_OVERLAPPED, FILE_GENERIC_READ, FILE_SHARE_READ, | ||
OPEN_EXISTING, | ||
}, | ||
Windows::Win32::System::Diagnostics::Debug::{GetLastError, ERROR_IO_PENDING}, | ||
Windows::Win32::System::SystemServices::GetOverlappedResult, | ||
Windows::Win32::System::Threading::{CreateEventA, WaitForSingleObject, WAIT_OBJECT_0}, | ||
Windows::Win32::System::WindowsProgramming::CloseHandle, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
fn main() { | ||
windows::build! {Windows::UI::Colors, Windows::UI::Color}; | ||
windows::build! {Windows::UI::Color, Windows::UI::Colors}; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::Globalization::{ | ||
ISpellChecker, SpellCheckerFactory, ISpellCheckerFactory, IEnumSpellingError, | ||
ISpellingError, CORRECTIVE_ACTION_NONE, CORRECTIVE_ACTION_DELETE, | ||
CORRECTIVE_ACTION_REPLACE, CORRECTIVE_ACTION_GET_SUGGESTIONS, | ||
IEnumSpellingError, ISpellChecker, ISpellCheckerFactory, ISpellingError, | ||
SpellCheckerFactory, CORRECTIVE_ACTION_DELETE, CORRECTIVE_ACTION_GET_SUGGESTIONS, | ||
CORRECTIVE_ACTION_NONE, CORRECTIVE_ACTION_REPLACE, | ||
}, | ||
Windows::Win32::System::Com::IEnumString, | ||
Windows::Win32::System::SystemServices::{BOOL, PWSTR, S_FALSE}, | ||
Windows::Win32::System::Com::IEnumString | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::ApplicationModel::Activation::*, | ||
Windows::ApplicationModel::Activation::*, Windows::UI::Xaml::Controls::TextBox, | ||
Windows::UI::Xaml::*, | ||
Windows::UI::Xaml::Controls::TextBox, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Data::Xml::Dom::XmlDocument, | ||
Windows::Data::Xml::Dom::XmlElement | ||
Windows::Data::Xml::Dom::XmlDocument, Windows::Data::Xml::Dom::XmlElement, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
fn main() { | ||
windows::build! { | ||
// TODO: IKeyValuePair should not need to be needed here https://github.com/microsoft/windows-rs/issues/772 | ||
Windows::Foundation::{IStringable, Collections::{IVector, IMap, IKeyValuePair}}, | ||
Windows::Foundation::{ | ||
Collections::{IKeyValuePair, IMap, IVector}, | ||
IStringable, | ||
}, | ||
|
||
// Test for https://github.com/microsoft/windows-rs/issues/699 | ||
Windows::Win32::System::Diagnostics::{ | ||
Debug::GetLastError, | ||
ProcessSnapshotting::PssCaptureSnapshot, | ||
} | ||
Debug::GetLastError, ProcessSnapshotting::PssCaptureSnapshot, | ||
}, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::System::SystemServices::{HANDLE, PSTR, PWSTR}, | ||
Windows::Win32::Graphics::Gdi::HGDIOBJ, | ||
Windows::Win32::System::SystemServices::{HANDLE, PSTR, PWSTR}, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Foundation::{IStringable, IClosable}, | ||
// TODO: Dependency tracking is a little too conservative for the implement macro at the moment. | ||
Windows::ApplicationModel::Activation::*, | ||
Windows::Foundation::{IClosable, IStringable}, | ||
Windows::UI::Xaml::*, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::System::WinRT::RoActivateInstance, | ||
Windows::Foundation::Collections::StringMap, | ||
Windows::Win32::System::WinRT::RoActivateInstance, | ||
Windows::Win32::UI::RadialInput::IRadialControllerInterop, | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
fn main() { | ||
windows::build! { | ||
Windows::Win32::System::SystemServices::OVERLAPPED, | ||
Windows::Win32::UI::ColorSystem::WhitePoint, | ||
Windows::Win32::Graphics::Direct3D12::{ | ||
D3D12_INDIRECT_ARGUMENT_DESC, D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW, | ||
D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT, | ||
D3D12_INDIRECT_ARGUMENT_DESC, D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT, | ||
D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW, | ||
}, | ||
Windows::Win32::System::SystemServices::OVERLAPPED, | ||
Windows::Win32::UI::ColorSystem::WhitePoint, | ||
}; | ||
} |
Oops, something went wrong.