diff options
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/WinRT/Pdf/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/WinRT/Pdf/mod.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/WinRT/Pdf/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/WinRT/Pdf/mod.rs new file mode 100644 index 000000000..615c5ce85 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/System/WinRT/Pdf/mod.rs @@ -0,0 +1,28 @@ +#[link(name = "windows")] +extern "system" { + #[doc = "*Required features: `\"Win32_System_WinRT_Pdf\"`, `\"Win32_Graphics_Dxgi\"`*"] + #[cfg(feature = "Win32_Graphics_Dxgi")] + pub fn PdfCreateRenderer(pdevice: super::super::super::Graphics::Dxgi::IDXGIDevice, pprenderer: *mut IPdfRendererNative) -> ::windows_sys::core::HRESULT; +} +pub type IPdfRendererNative = *mut ::core::ffi::c_void; +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_WinRT_Pdf\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Direct2D_Common\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct2D_Common"))] +pub struct PDF_RENDER_PARAMS { + pub SourceRect: super::super::super::Graphics::Direct2D::Common::D2D_RECT_F, + pub DestinationWidth: u32, + pub DestinationHeight: u32, + pub BackgroundColor: super::super::super::Graphics::Direct2D::Common::D2D_COLOR_F, + pub IgnoreHighContrast: super::super::super::Foundation::BOOLEAN, +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct2D_Common"))] +impl ::core::marker::Copy for PDF_RENDER_PARAMS {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct2D_Common"))] +impl ::core::clone::Clone for PDF_RENDER_PARAMS { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Win32_System_WinRT_Pdf\"`, `\"Win32_Graphics_Dxgi\"`*"] +#[cfg(feature = "Win32_Graphics_Dxgi")] +pub type PFN_PDF_CREATE_RENDERER = ::core::option::Option<unsafe extern "system" fn(param0: super::super::super::Graphics::Dxgi::IDXGIDevice, param1: *mut IPdfRendererNative) -> ::windows_sys::core::HRESULT>; |