mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
361 lines
23 KiB
C++
361 lines
23 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Windows_Devices_Scanners_0_H
|
|
#define WINRT_Windows_Devices_Scanners_0_H
|
|
WINRT_EXPORT namespace winrt::Windows::Foundation
|
|
{
|
|
struct Rect;
|
|
struct Size;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Graphics::Printing
|
|
{
|
|
enum class PrintMediaSize : int32_t;
|
|
enum class PrintOrientation : int32_t;
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Storage
|
|
{
|
|
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;
|
|
struct ScannerDeviceContract;
|
|
}
|
|
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 auto& name_v<winrt::Windows::Devices::Scanners::ScannerDeviceContract> = L"Windows.Devices.Scanners.ScannerDeviceContract";
|
|
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 WINRT_IMPL_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 WINRT_IMPL_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 WINRT_IMPL_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 WINRT_IMPL_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 WINRT_IMPL_NOVTABLE type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_ScannedFiles(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Scanners::IImageScannerSourceConfiguration>
|
|
{
|
|
struct WINRT_IMPL_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 WINRT_IMPL_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]] auto DeviceId() const;
|
|
[[nodiscard]] auto DefaultScanSource() const;
|
|
auto IsScanSourceSupported(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& value) const;
|
|
[[nodiscard]] auto FlatbedConfiguration() const;
|
|
[[nodiscard]] auto FeederConfiguration() const;
|
|
[[nodiscard]] auto AutoConfiguration() const;
|
|
auto IsPreviewSupported(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& scanSource) const;
|
|
auto ScanPreviewToStreamAsync(winrt::Windows::Devices::Scanners::ImageScannerScanSource const& scanSource, winrt::Windows::Storage::Streams::IRandomAccessStream const& targetStream) const;
|
|
auto 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]] auto CanAutoDetectPageSize() const;
|
|
[[nodiscard]] auto AutoDetectPageSize() const;
|
|
auto AutoDetectPageSize(bool value) const;
|
|
[[nodiscard]] auto PageSize() const;
|
|
auto PageSize(winrt::Windows::Graphics::Printing::PrintMediaSize const& value) const;
|
|
[[nodiscard]] auto PageOrientation() const;
|
|
auto PageOrientation(winrt::Windows::Graphics::Printing::PrintOrientation const& value) const;
|
|
[[nodiscard]] auto PageSizeDimensions() const;
|
|
auto IsPageSizeSupported(winrt::Windows::Graphics::Printing::PrintMediaSize const& pageSize, winrt::Windows::Graphics::Printing::PrintOrientation const& pageOrientation) const;
|
|
[[nodiscard]] auto MaxNumberOfPages() const;
|
|
auto MaxNumberOfPages(uint32_t value) const;
|
|
[[nodiscard]] auto CanScanDuplex() const;
|
|
[[nodiscard]] auto Duplex() const;
|
|
auto Duplex(bool value) const;
|
|
[[nodiscard]] auto CanScanAhead() const;
|
|
[[nodiscard]] auto ScanAhead() const;
|
|
auto 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]] auto DefaultFormat() const;
|
|
[[nodiscard]] auto Format() const;
|
|
auto Format(winrt::Windows::Devices::Scanners::ImageScannerFormat const& value) const;
|
|
auto 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]] auto Succeeded() const;
|
|
[[nodiscard]] auto 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]] auto 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]] auto MinScanArea() const;
|
|
[[nodiscard]] auto MaxScanArea() const;
|
|
[[nodiscard]] auto SelectedScanRegion() const;
|
|
auto SelectedScanRegion(winrt::Windows::Foundation::Rect const& value) const;
|
|
[[nodiscard]] auto AutoCroppingMode() const;
|
|
auto AutoCroppingMode(winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode const& value) const;
|
|
auto IsAutoCroppingModeSupported(winrt::Windows::Devices::Scanners::ImageScannerAutoCroppingMode const& value) const;
|
|
[[nodiscard]] auto MinResolution() const;
|
|
[[nodiscard]] auto MaxResolution() const;
|
|
[[nodiscard]] auto OpticalResolution() const;
|
|
[[nodiscard]] auto DesiredResolution() const;
|
|
auto DesiredResolution(winrt::Windows::Devices::Scanners::ImageScannerResolution const& value) const;
|
|
[[nodiscard]] auto ActualResolution() const;
|
|
[[nodiscard]] auto DefaultColorMode() const;
|
|
[[nodiscard]] auto ColorMode() const;
|
|
auto ColorMode(winrt::Windows::Devices::Scanners::ImageScannerColorMode const& value) const;
|
|
auto IsColorModeSupported(winrt::Windows::Devices::Scanners::ImageScannerColorMode const& value) const;
|
|
[[nodiscard]] auto MinBrightness() const;
|
|
[[nodiscard]] auto MaxBrightness() const;
|
|
[[nodiscard]] auto BrightnessStep() const;
|
|
[[nodiscard]] auto DefaultBrightness() const;
|
|
[[nodiscard]] auto Brightness() const;
|
|
auto Brightness(int32_t value) const;
|
|
[[nodiscard]] auto MinContrast() const;
|
|
[[nodiscard]] auto MaxContrast() const;
|
|
[[nodiscard]] auto ContrastStep() const;
|
|
[[nodiscard]] auto DefaultContrast() const;
|
|
[[nodiscard]] auto Contrast() const;
|
|
auto 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
|
|
{
|
|
auto FromIdAsync(param::hstring const& deviceId) const;
|
|
auto 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
|