// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_UI_Xaml_Media_Imaging_2_H #define WINRT_Microsoft_UI_Xaml_Media_Imaging_2_H #include "winrt/impl/Microsoft.UI.Xaml.1.h" #include "winrt/impl/Microsoft.UI.Xaml.Media.1.h" #include "winrt/impl/Windows.ApplicationModel.Background.1.h" #include "winrt/impl/Windows.Foundation.1.h" #include "winrt/impl/Microsoft.UI.Xaml.Media.Imaging.1.h" WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media::Imaging { struct DownloadProgressEventHandler : winrt::Windows::Foundation::IUnknown { DownloadProgressEventHandler(std::nullptr_t = nullptr) noexcept {} DownloadProgressEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template DownloadProgressEventHandler(L lambda); template DownloadProgressEventHandler(F* function); template DownloadProgressEventHandler(O* object, M method); template DownloadProgressEventHandler(com_ptr&& object, M method); template DownloadProgressEventHandler(weak_ref&& object, LM&& lambda_or_method); template DownloadProgressEventHandler(std::shared_ptr&& object, M method); template DownloadProgressEventHandler(std::weak_ptr&& object, LM&& lambda_or_method); auto operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Media::Imaging::DownloadProgressEventArgs const& e) const; }; struct WINRT_IMPL_EMPTY_BASES BitmapImage : winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, impl::base, impl::require { BitmapImage(std::nullptr_t) noexcept {} BitmapImage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage(ptr, take_ownership_from_abi) {} BitmapImage(); explicit BitmapImage(winrt::Windows::Foundation::Uri const& uriSource); [[nodiscard]] static auto CreateOptionsProperty(); [[nodiscard]] static auto UriSourceProperty(); [[nodiscard]] static auto DecodePixelWidthProperty(); [[nodiscard]] static auto DecodePixelHeightProperty(); [[nodiscard]] static auto DecodePixelTypeProperty(); [[nodiscard]] static auto IsAnimatedBitmapProperty(); [[nodiscard]] static auto IsPlayingProperty(); [[nodiscard]] static auto AutoPlayProperty(); }; struct WINRT_IMPL_EMPTY_BASES BitmapSource : winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource, impl::base, impl::require { BitmapSource(std::nullptr_t) noexcept {} BitmapSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource(ptr, take_ownership_from_abi) {} [[nodiscard]] static auto PixelWidthProperty(); [[nodiscard]] static auto PixelHeightProperty(); }; struct WINRT_IMPL_EMPTY_BASES DownloadProgressEventArgs : winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs { DownloadProgressEventArgs(std::nullptr_t) noexcept {} DownloadProgressEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES RenderTargetBitmap : winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, impl::base, impl::require { RenderTargetBitmap(std::nullptr_t) noexcept {} RenderTargetBitmap(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap(ptr, take_ownership_from_abi) {} RenderTargetBitmap(); [[nodiscard]] static auto PixelWidthProperty(); [[nodiscard]] static auto PixelHeightProperty(); }; struct WINRT_IMPL_EMPTY_BASES SoftwareBitmapSource : winrt::Microsoft::UI::Xaml::Media::Imaging::ISoftwareBitmapSource, impl::base, impl::require { SoftwareBitmapSource(std::nullptr_t) noexcept {} SoftwareBitmapSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::ISoftwareBitmapSource(ptr, take_ownership_from_abi) {} SoftwareBitmapSource(); }; struct WINRT_IMPL_EMPTY_BASES SurfaceImageSource : winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSource, impl::base, impl::require { SurfaceImageSource(std::nullptr_t) noexcept {} SurfaceImageSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSource(ptr, take_ownership_from_abi) {} SurfaceImageSource(int32_t pixelWidth, int32_t pixelHeight); SurfaceImageSource(int32_t pixelWidth, int32_t pixelHeight, bool isOpaque); }; struct WINRT_IMPL_EMPTY_BASES SvgImageSource : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, impl::base, impl::require { SvgImageSource(std::nullptr_t) noexcept {} SvgImageSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource(ptr, take_ownership_from_abi) {} SvgImageSource(); explicit SvgImageSource(winrt::Windows::Foundation::Uri const& uriSource); [[nodiscard]] static auto UriSourceProperty(); [[nodiscard]] static auto RasterizePixelWidthProperty(); [[nodiscard]] static auto RasterizePixelHeightProperty(); }; struct WINRT_IMPL_EMPTY_BASES SvgImageSourceFailedEventArgs : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFailedEventArgs { SvgImageSourceFailedEventArgs(std::nullptr_t) noexcept {} SvgImageSourceFailedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFailedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES SvgImageSourceOpenedEventArgs : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceOpenedEventArgs { SvgImageSourceOpenedEventArgs(std::nullptr_t) noexcept {} SvgImageSourceOpenedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceOpenedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES VirtualSurfaceImageSource : winrt::Microsoft::UI::Xaml::Media::Imaging::IVirtualSurfaceImageSource, impl::base, impl::require { VirtualSurfaceImageSource(std::nullptr_t) noexcept {} VirtualSurfaceImageSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IVirtualSurfaceImageSource(ptr, take_ownership_from_abi) {} VirtualSurfaceImageSource(int32_t pixelWidth, int32_t pixelHeight); VirtualSurfaceImageSource(int32_t pixelWidth, int32_t pixelHeight, bool isOpaque); }; struct WINRT_IMPL_EMPTY_BASES WriteableBitmap : winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmap, impl::base, impl::require { WriteableBitmap(std::nullptr_t) noexcept {} WriteableBitmap(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmap(ptr, take_ownership_from_abi) {} WriteableBitmap(int32_t pixelWidth, int32_t pixelHeight); }; struct WINRT_IMPL_EMPTY_BASES XamlRenderingBackgroundTask : winrt::Microsoft::UI::Xaml::Media::Imaging::IXamlRenderingBackgroundTask { XamlRenderingBackgroundTask(std::nullptr_t) noexcept {} XamlRenderingBackgroundTask(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::UI::Xaml::Media::Imaging::IXamlRenderingBackgroundTask(ptr, take_ownership_from_abi) {} }; template class IXamlRenderingBackgroundTaskOverridesT { D& shim() noexcept { return *static_cast(this); } D const& shim() const noexcept { return *static_cast(this); } public: using IXamlRenderingBackgroundTaskOverrides = winrt::Microsoft::UI::Xaml::Media::Imaging::IXamlRenderingBackgroundTaskOverrides; auto OnRun(winrt::Windows::ApplicationModel::Background::IBackgroundTaskInstance const& taskInstance) const; }; } #endif