mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Latest update for winrt
PiperOrigin-RevId: 452591835
This commit is contained in:
committed by
Copybara-Service
parent
11558b453c
commit
28da839987
+33
-34
@@ -1,4 +1,4 @@
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
||||
|
||||
#pragma once
|
||||
#ifndef WINRT_Windows_Data_Pdf_0_H
|
||||
@@ -6,7 +6,6 @@
|
||||
WINRT_EXPORT namespace winrt::Windows::Foundation
|
||||
{
|
||||
struct IAsyncAction;
|
||||
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
|
||||
struct Rect;
|
||||
struct Size;
|
||||
}
|
||||
@@ -137,9 +136,9 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Data_Pdf_IPdfDocument
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Data::Pdf::PdfPage) GetPage(uint32_t pageIndex) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) PageCount() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsPasswordProtected() const;
|
||||
auto GetPage(uint32_t pageIndex) const;
|
||||
[[nodiscard]] auto PageCount() const;
|
||||
[[nodiscard]] auto IsPasswordProtected() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Data::Pdf::IPdfDocument>
|
||||
{
|
||||
@@ -148,10 +147,10 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Data_Pdf_IPdfDocumentStatics
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Data::Pdf::PdfDocument>) LoadFromFileAsync(winrt::Windows::Storage::IStorageFile const& file) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Data::Pdf::PdfDocument>) LoadFromFileAsync(winrt::Windows::Storage::IStorageFile const& file, param::hstring const& password) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Data::Pdf::PdfDocument>) LoadFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& inputStream) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Data::Pdf::PdfDocument>) LoadFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& inputStream, param::hstring const& password) const;
|
||||
auto LoadFromFileAsync(winrt::Windows::Storage::IStorageFile const& file) const;
|
||||
auto LoadFromFileAsync(winrt::Windows::Storage::IStorageFile const& file, param::hstring const& password) const;
|
||||
auto LoadFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& inputStream) const;
|
||||
auto LoadFromStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& inputStream, param::hstring const& password) const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Data::Pdf::IPdfDocumentStatics>
|
||||
{
|
||||
@@ -160,14 +159,14 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Data_Pdf_IPdfPage
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncAction) RenderToStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& outputStream) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncAction) RenderToStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& outputStream, winrt::Windows::Data::Pdf::PdfPageRenderOptions const& options) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncAction) PreparePageAsync() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Index() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Size) Size() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Data::Pdf::PdfPageDimensions) Dimensions() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Data::Pdf::PdfPageRotation) Rotation() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(float) PreferredZoom() const;
|
||||
auto RenderToStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& outputStream) const;
|
||||
auto RenderToStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& outputStream, winrt::Windows::Data::Pdf::PdfPageRenderOptions const& options) const;
|
||||
auto PreparePageAsync() const;
|
||||
[[nodiscard]] auto Index() const;
|
||||
[[nodiscard]] auto Size() const;
|
||||
[[nodiscard]] auto Dimensions() const;
|
||||
[[nodiscard]] auto Rotation() const;
|
||||
[[nodiscard]] auto PreferredZoom() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Data::Pdf::IPdfPage>
|
||||
{
|
||||
@@ -176,11 +175,11 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Data_Pdf_IPdfPageDimensions
|
||||
{
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) MediaBox() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) CropBox() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) BleedBox() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) TrimBox() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) ArtBox() const;
|
||||
[[nodiscard]] auto MediaBox() const;
|
||||
[[nodiscard]] auto CropBox() const;
|
||||
[[nodiscard]] auto BleedBox() const;
|
||||
[[nodiscard]] auto TrimBox() const;
|
||||
[[nodiscard]] auto ArtBox() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Data::Pdf::IPdfPageDimensions>
|
||||
{
|
||||
@@ -189,18 +188,18 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Data_Pdf_IPdfPageRenderOptions
|
||||
{
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) SourceRect() const;
|
||||
WINRT_IMPL_AUTO(void) SourceRect(winrt::Windows::Foundation::Rect const& value) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) DestinationWidth() const;
|
||||
WINRT_IMPL_AUTO(void) DestinationWidth(uint32_t value) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) DestinationHeight() const;
|
||||
WINRT_IMPL_AUTO(void) DestinationHeight(uint32_t value) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::UI::Color) BackgroundColor() const;
|
||||
WINRT_IMPL_AUTO(void) BackgroundColor(winrt::Windows::UI::Color const& value) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsIgnoringHighContrast() const;
|
||||
WINRT_IMPL_AUTO(void) IsIgnoringHighContrast(bool value) const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::guid) BitmapEncoderId() const;
|
||||
WINRT_IMPL_AUTO(void) BitmapEncoderId(winrt::guid const& value) const;
|
||||
[[nodiscard]] auto SourceRect() const;
|
||||
auto SourceRect(winrt::Windows::Foundation::Rect const& value) const;
|
||||
[[nodiscard]] auto DestinationWidth() const;
|
||||
auto DestinationWidth(uint32_t value) const;
|
||||
[[nodiscard]] auto DestinationHeight() const;
|
||||
auto DestinationHeight(uint32_t value) const;
|
||||
[[nodiscard]] auto BackgroundColor() const;
|
||||
auto BackgroundColor(winrt::Windows::UI::Color const& value) const;
|
||||
[[nodiscard]] auto IsIgnoringHighContrast() const;
|
||||
auto IsIgnoringHighContrast(bool value) const;
|
||||
[[nodiscard]] auto BitmapEncoderId() const;
|
||||
auto BitmapEncoderId(winrt::guid const& value) const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Data::Pdf::IPdfPageRenderOptions>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user