Files
nearby/cpp/platform/impl/windows/generated/winrt/impl/Windows.Foundation.Collections.2.h
T

57 lines
3.5 KiB
C++

// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
#pragma once
#ifndef WINRT_Windows_Foundation_Collections_2_H
#define WINRT_Windows_Foundation_Collections_2_H
#include "winrt/impl/Windows.Foundation.Collections.1.h"
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename K, typename V>
struct MapChangedEventHandler : winrt::Windows::Foundation::IUnknown
{
static_assert(impl::has_category_v<K>, "K must be WinRT type.");
static_assert(impl::has_category_v<V>, "V must be WinRT type.");
MapChangedEventHandler(std::nullptr_t = nullptr) noexcept {}
MapChangedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
template <typename L> MapChangedEventHandler(L lambda);
template <typename F> MapChangedEventHandler(F* function);
template <typename O, typename M> MapChangedEventHandler(O* object, M method);
template <typename O, typename M> MapChangedEventHandler(com_ptr<O>&& object, M method);
template <typename O, typename M> MapChangedEventHandler(weak_ref<O>&& object, M method);
auto operator()(winrt::Windows::Foundation::Collections::IObservableMap<K, V> const& sender, winrt::Windows::Foundation::Collections::IMapChangedEventArgs<K> const& event) const;
};
template <typename T>
struct VectorChangedEventHandler : winrt::Windows::Foundation::IUnknown
{
static_assert(impl::has_category_v<T>, "T must be WinRT type.");
VectorChangedEventHandler(std::nullptr_t = nullptr) noexcept {}
VectorChangedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
template <typename L> VectorChangedEventHandler(L lambda);
template <typename F> VectorChangedEventHandler(F* function);
template <typename O, typename M> VectorChangedEventHandler(O* object, M method);
template <typename O, typename M> VectorChangedEventHandler(com_ptr<O>&& object, M method);
template <typename O, typename M> VectorChangedEventHandler(weak_ref<O>&& object, M method);
auto operator()(winrt::Windows::Foundation::Collections::IObservableVector<T> const& sender, winrt::Windows::Foundation::Collections::IVectorChangedEventArgs const& event) const;
};
struct __declspec(empty_bases) PropertySet : winrt::Windows::Foundation::Collections::IPropertySet
{
PropertySet(std::nullptr_t) noexcept {}
PropertySet(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::Collections::IPropertySet(ptr, take_ownership_from_abi) {}
PropertySet();
};
struct __declspec(empty_bases) StringMap : winrt::Windows::Foundation::Collections::IMap<hstring, hstring>,
impl::require<StringMap, winrt::Windows::Foundation::Collections::IObservableMap<hstring, hstring>>
{
StringMap(std::nullptr_t) noexcept {}
StringMap(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::Collections::IMap<hstring, hstring>(ptr, take_ownership_from_abi) {}
StringMap();
};
struct __declspec(empty_bases) ValueSet : winrt::Windows::Foundation::Collections::IPropertySet
{
ValueSet(std::nullptr_t) noexcept {}
ValueSet(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::Collections::IPropertySet(ptr, take_ownership_from_abi) {}
ValueSet();
};
}
#endif