nearby sdk refactor

PiperOrigin-RevId: 425434260
This commit is contained in:
hais
2022-02-02 11:56:39 -08:00
committed by hai007
parent 287f0d7174
commit f5fcd35ced
1879 changed files with 2485 additions and 2332 deletions
@@ -0,0 +1,365 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
#pragma once
#ifndef WINRT_Windows_Devices_Scanners_0_H
#define WINRT_Windows_Devices_Scanners_0_H
WINRT_EXPORT namespace winrt::Windows::Foundation
{
template <typename TResult, typename TProgress> struct __declspec(empty_bases) IAsyncOperationWithProgress;
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
struct Rect;
struct Size;
}
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename T> struct __declspec(empty_bases) IVectorView;
}
WINRT_EXPORT namespace winrt::Windows::Graphics::Printing
{
enum class PrintMediaSize : int32_t;
enum class PrintOrientation : int32_t;
}
WINRT_EXPORT namespace winrt::Windows::Storage
{
struct StorageFile;
struct StorageFolder;
}
WINRT_EXPORT namespace winrt::Windows::Storage::Streams
{
struct IRandomAccessStream;
}
WINRT_EXPORT namespace winrt::Windows::Devices::Scanners
{
enum class ImageScannerAutoCroppingMode : int32_t
{
Disabled = 0,
SingleRegion = 1,
MultipleRegion = 2,
};
enum class ImageScannerColorMode : int32_t
{
Color = 0,
Grayscale = 1,
Monochrome = 2,
AutoColor = 3,
};
enum class ImageScannerFormat : int32_t
{
Jpeg = 0,
Png = 1,
DeviceIndependentBitmap = 2,
Tiff = 3,
Xps = 4,
OpenXps = 5,
Pdf = 6,
};
enum class ImageScannerScanSource : int32_t
{
Default = 0,
Flatbed = 1,
Feeder = 2,
AutoConfigured = 3,
};
struct IImageScanner;
struct IImageScannerFeederConfiguration;
struct IImageScannerFormatConfiguration;
struct IImageScannerPreviewResult;
struct IImageScannerScanResult;
struct IImageScannerSourceConfiguration;
struct IImageScannerStatics;
struct ImageScanner;
struct ImageScannerAutoConfiguration;
struct ImageScannerFeederConfiguration;
struct ImageScannerFlatbedConfiguration;
struct ImageScannerPreviewResult;
struct ImageScannerScanResult;
struct ImageScannerResolution;
}
namespace winrt::impl
{
template <> struct category<winrt::Windows::Devices::Scanners::IImageScanner>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerFeederConfiguration>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerPreviewResult>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerScanResult>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::IImageScannerStatics>{ using type = interface_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScanner>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerAutoConfiguration>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerFeederConfiguration>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerFlatbedConfiguration>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerPreviewResult>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerScanResult>{ using type = class_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode>{ using type = enum_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerColorMode>{ using type = enum_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerFormat>{ using type = enum_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerScanSource>{ using type = enum_category; };
template <> struct category<winrt::Windows::Devices::Scanners::ImageScannerResolution>{ using type = struct_category<float, float>; };
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScanner> = L"Windows.Devices.Scanners.ImageScanner";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerAutoConfiguration> = L"Windows.Devices.Scanners.ImageScannerAutoConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerFeederConfiguration> = L"Windows.Devices.Scanners.ImageScannerFeederConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerFlatbedConfiguration> = L"Windows.Devices.Scanners.ImageScannerFlatbedConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerPreviewResult> = L"Windows.Devices.Scanners.ImageScannerPreviewResult";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerScanResult> = L"Windows.Devices.Scanners.ImageScannerScanResult";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode> = L"Windows.Devices.Scanners.ImageScannerAutoCroppingMode";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerColorMode> = L"Windows.Devices.Scanners.ImageScannerColorMode";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerFormat> = L"Windows.Devices.Scanners.ImageScannerFormat";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerScanSource> = L"Windows.Devices.Scanners.ImageScannerScanSource";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::ImageScannerResolution> = L"Windows.Devices.Scanners.ImageScannerResolution";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScanner> = L"Windows.Devices.Scanners.IImageScanner";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerFeederConfiguration> = L"Windows.Devices.Scanners.IImageScannerFeederConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration> = L"Windows.Devices.Scanners.IImageScannerFormatConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerPreviewResult> = L"Windows.Devices.Scanners.IImageScannerPreviewResult";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerScanResult> = L"Windows.Devices.Scanners.IImageScannerScanResult";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration> = L"Windows.Devices.Scanners.IImageScannerSourceConfiguration";
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Scanners::IImageScannerStatics> = L"Windows.Devices.Scanners.IImageScannerStatics";
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScanner>{ 0x53A88F78,0x5298,0x48A0,{ 0x8D,0xA3,0x80,0x87,0x51,0x96,0x65,0xE0 } }; // 53A88F78-5298-48A0-8DA3-8087519665E0
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerFeederConfiguration>{ 0x74BDACEE,0xFA97,0x4C17,{ 0x82,0x80,0x40,0xE3,0x9C,0x6D,0xCC,0x67 } }; // 74BDACEE-FA97-4C17-8280-40E39C6DCC67
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration>{ 0xAE275D11,0xDADF,0x4010,{ 0xBF,0x10,0xCC,0xA5,0xC8,0x3D,0xCB,0xB0 } }; // AE275D11-DADF-4010-BF10-CCA5C83DCBB0
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerPreviewResult>{ 0x08B7FE8E,0x8891,0x441D,{ 0xBE,0x9C,0x17,0x6F,0xA1,0x09,0xC8,0xBB } }; // 08B7FE8E-8891-441D-BE9C-176FA109C8BB
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerScanResult>{ 0xC91624CD,0x9037,0x4E48,{ 0x84,0xC1,0xAC,0x09,0x75,0x07,0x6B,0xC5 } }; // C91624CD-9037-4E48-84C1-AC0975076BC5
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration>{ 0xBFB50055,0x0B44,0x4C82,{ 0x9E,0x89,0x20,0x5F,0x9C,0x23,0x4E,0x59 } }; // BFB50055-0B44-4C82-9E89-205F9C234E59
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Scanners::IImageScannerStatics>{ 0xBC57E70E,0xD804,0x4477,{ 0x9F,0xB5,0xB9,0x11,0xB5,0x47,0x38,0x97 } }; // BC57E70E-D804-4477-9FB5-B911B5473897
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScanner>{ using type = winrt::Windows::Devices::Scanners::IImageScanner; };
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScannerAutoConfiguration>{ using type = winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration; };
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScannerFeederConfiguration>{ using type = winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration; };
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScannerFlatbedConfiguration>{ using type = winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration; };
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScannerPreviewResult>{ using type = winrt::Windows::Devices::Scanners::IImageScannerPreviewResult; };
template <> struct default_interface<winrt::Windows::Devices::Scanners::ImageScannerScanResult>{ using type = winrt::Windows::Devices::Scanners::IImageScannerScanResult; };
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScanner>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_DeviceId(void**) noexcept = 0;
virtual int32_t __stdcall get_DefaultScanSource(int32_t*) noexcept = 0;
virtual int32_t __stdcall IsScanSourceSupported(int32_t, bool*) noexcept = 0;
virtual int32_t __stdcall get_FlatbedConfiguration(void**) noexcept = 0;
virtual int32_t __stdcall get_FeederConfiguration(void**) noexcept = 0;
virtual int32_t __stdcall get_AutoConfiguration(void**) noexcept = 0;
virtual int32_t __stdcall IsPreviewSupported(int32_t, bool*) noexcept = 0;
virtual int32_t __stdcall ScanPreviewToStreamAsync(int32_t, void*, void**) noexcept = 0;
virtual int32_t __stdcall ScanFilesToFolderAsync(int32_t, void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerFeederConfiguration>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_CanAutoDetectPageSize(bool*) noexcept = 0;
virtual int32_t __stdcall get_AutoDetectPageSize(bool*) noexcept = 0;
virtual int32_t __stdcall put_AutoDetectPageSize(bool) noexcept = 0;
virtual int32_t __stdcall get_PageSize(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_PageSize(int32_t) noexcept = 0;
virtual int32_t __stdcall get_PageOrientation(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_PageOrientation(int32_t) noexcept = 0;
virtual int32_t __stdcall get_PageSizeDimensions(winrt::Windows::Foundation::Size*) noexcept = 0;
virtual int32_t __stdcall IsPageSizeSupported(int32_t, int32_t, bool*) noexcept = 0;
virtual int32_t __stdcall get_MaxNumberOfPages(uint32_t*) noexcept = 0;
virtual int32_t __stdcall put_MaxNumberOfPages(uint32_t) noexcept = 0;
virtual int32_t __stdcall get_CanScanDuplex(bool*) noexcept = 0;
virtual int32_t __stdcall get_Duplex(bool*) noexcept = 0;
virtual int32_t __stdcall put_Duplex(bool) noexcept = 0;
virtual int32_t __stdcall get_CanScanAhead(bool*) noexcept = 0;
virtual int32_t __stdcall get_ScanAhead(bool*) noexcept = 0;
virtual int32_t __stdcall put_ScanAhead(bool) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_DefaultFormat(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_Format(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_Format(int32_t) noexcept = 0;
virtual int32_t __stdcall IsFormatSupported(int32_t, bool*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerPreviewResult>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_Succeeded(bool*) noexcept = 0;
virtual int32_t __stdcall get_Format(int32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerScanResult>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_ScannedFiles(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_MinScanArea(winrt::Windows::Foundation::Size*) noexcept = 0;
virtual int32_t __stdcall get_MaxScanArea(winrt::Windows::Foundation::Size*) noexcept = 0;
virtual int32_t __stdcall get_SelectedScanRegion(winrt::Windows::Foundation::Rect*) noexcept = 0;
virtual int32_t __stdcall put_SelectedScanRegion(winrt::Windows::Foundation::Rect) noexcept = 0;
virtual int32_t __stdcall get_AutoCroppingMode(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_AutoCroppingMode(int32_t) noexcept = 0;
virtual int32_t __stdcall IsAutoCroppingModeSupported(int32_t, bool*) noexcept = 0;
virtual int32_t __stdcall get_MinResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution*) noexcept = 0;
virtual int32_t __stdcall get_MaxResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution*) noexcept = 0;
virtual int32_t __stdcall get_OpticalResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution*) noexcept = 0;
virtual int32_t __stdcall get_DesiredResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution*) noexcept = 0;
virtual int32_t __stdcall put_DesiredResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution) noexcept = 0;
virtual int32_t __stdcall get_ActualResolution(struct struct_Windows_Devices_Scanners_ImageScannerResolution*) noexcept = 0;
virtual int32_t __stdcall get_DefaultColorMode(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_ColorMode(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_ColorMode(int32_t) noexcept = 0;
virtual int32_t __stdcall IsColorModeSupported(int32_t, bool*) noexcept = 0;
virtual int32_t __stdcall get_MinBrightness(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_MaxBrightness(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_BrightnessStep(uint32_t*) noexcept = 0;
virtual int32_t __stdcall get_DefaultBrightness(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_Brightness(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_Brightness(int32_t) noexcept = 0;
virtual int32_t __stdcall get_MinContrast(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_MaxContrast(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_ContrastStep(uint32_t*) noexcept = 0;
virtual int32_t __stdcall get_DefaultContrast(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_Contrast(int32_t*) noexcept = 0;
virtual int32_t __stdcall put_Contrast(int32_t) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerStatics>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall FromIdAsync(void*, void**) noexcept = 0;
virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0;
};
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScanner
{
[[nodiscard]] WINRT_IMPL_AUTO(hstring) DeviceId() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerScanSource) DefaultScanSource() const;
WINRT_IMPL_AUTO(bool) IsScanSourceSupported(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerFlatbedConfiguration) FlatbedConfiguration() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerFeederConfiguration) FeederConfiguration() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerAutoConfiguration) AutoConfiguration() const;
WINRT_IMPL_AUTO(bool) IsPreviewSupported(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& scanSource) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Scanners::ImageScannerPreviewResult>) ScanPreviewToStreamAsync(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& scanSource, winrt::Windows::Storage::Streams::IRandomAccessStream const& targetStream) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Windows::Devices::Scanners::ImageScannerScanResult, uint32_t>) ScanFilesToFolderAsync(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& scanSource, winrt::Windows::Storage::StorageFolder const& storageFolder) const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScanner>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScanner<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerFeederConfiguration
{
[[nodiscard]] WINRT_IMPL_AUTO(bool) CanAutoDetectPageSize() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) AutoDetectPageSize() const;
WINRT_IMPL_AUTO(void) AutoDetectPageSize(bool value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Graphics::Printing::PrintMediaSize) PageSize() const;
WINRT_IMPL_AUTO(void) PageSize(winrt::Windows::Graphics::Printing::PrintMediaSize const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Graphics::Printing::PrintOrientation) PageOrientation() const;
WINRT_IMPL_AUTO(void) PageOrientation(winrt::Windows::Graphics::Printing::PrintOrientation const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Size) PageSizeDimensions() const;
WINRT_IMPL_AUTO(bool) IsPageSizeSupported(winrt::Windows::Graphics::Printing::PrintMediaSize const& pageSize, winrt::Windows::Graphics::Printing::PrintOrientation const& pageOrientation) const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) MaxNumberOfPages() const;
WINRT_IMPL_AUTO(void) MaxNumberOfPages(uint32_t value) const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) CanScanDuplex() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) Duplex() const;
WINRT_IMPL_AUTO(void) Duplex(bool value) const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) CanScanAhead() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) ScanAhead() const;
WINRT_IMPL_AUTO(void) ScanAhead(bool value) const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerFeederConfiguration>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerFeederConfiguration<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerFormatConfiguration
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerFormat) DefaultFormat() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerFormat) Format() const;
WINRT_IMPL_AUTO(void) Format(winrt::Windows::Devices::Scanners::ImageScannerFormat const& value) const;
WINRT_IMPL_AUTO(bool) IsFormatSupported(winrt::Windows::Devices::Scanners::ImageScannerFormat const& value) const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerFormatConfiguration>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerFormatConfiguration<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerPreviewResult
{
[[nodiscard]] WINRT_IMPL_AUTO(bool) Succeeded() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerFormat) Format() const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerPreviewResult>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerPreviewResult<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerScanResult
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Storage::StorageFile>) ScannedFiles() const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerScanResult>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerScanResult<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerSourceConfiguration
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Size) MinScanArea() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Size) MaxScanArea() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) SelectedScanRegion() const;
WINRT_IMPL_AUTO(void) SelectedScanRegion(winrt::Windows::Foundation::Rect const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode) AutoCroppingMode() const;
WINRT_IMPL_AUTO(void) AutoCroppingMode(winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode const& value) const;
WINRT_IMPL_AUTO(bool) IsAutoCroppingModeSupported(winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerResolution) MinResolution() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerResolution) MaxResolution() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerResolution) OpticalResolution() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerResolution) DesiredResolution() const;
WINRT_IMPL_AUTO(void) DesiredResolution(winrt::Windows::Devices::Scanners::ImageScannerResolution const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerResolution) ActualResolution() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerColorMode) DefaultColorMode() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Scanners::ImageScannerColorMode) ColorMode() const;
WINRT_IMPL_AUTO(void) ColorMode(winrt::Windows::Devices::Scanners::ImageScannerColorMode const& value) const;
WINRT_IMPL_AUTO(bool) IsColorModeSupported(winrt::Windows::Devices::Scanners::ImageScannerColorMode const& value) const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MinBrightness() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MaxBrightness() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) BrightnessStep() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) DefaultBrightness() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) Brightness() const;
WINRT_IMPL_AUTO(void) Brightness(int32_t value) const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MinContrast() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) MaxContrast() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) ContrastStep() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) DefaultContrast() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) Contrast() const;
WINRT_IMPL_AUTO(void) Contrast(int32_t value) const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerSourceConfiguration<D>;
};
template <typename D>
struct consume_Windows_Devices_Scanners_IImageScannerStatics
{
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Scanners::ImageScanner>) FromIdAsync(param::hstring const& deviceId) const;
WINRT_IMPL_AUTO(hstring) GetDeviceSelector() const;
};
template <> struct consume<winrt::Windows::Devices::Scanners::IImageScannerStatics>
{
template <typename D> using type = consume_Windows_Devices_Scanners_IImageScannerStatics<D>;
};
struct struct_Windows_Devices_Scanners_ImageScannerResolution
{
float DpiX;
float DpiY;
};
template <> struct abi<Windows::Devices::Scanners::ImageScannerResolution>
{
using type = struct_Windows_Devices_Scanners_ImageScannerResolution;
};
}
#endif