mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
76 lines
4.9 KiB
C++
76 lines
4.9 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
|
|
|
|
#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 : 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 : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
|
|
MapChangedEventHandler(MapChangedEventHandler const&) noexcept = default;
|
|
MapChangedEventHandler(MapChangedEventHandler&&) noexcept = default;
|
|
MapChangedEventHandler& operator=(MapChangedEventHandler const&) & noexcept = default;
|
|
MapChangedEventHandler& operator=(MapChangedEventHandler&&) & noexcept = default;
|
|
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 : 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 : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
|
|
VectorChangedEventHandler(VectorChangedEventHandler const&) noexcept = default;
|
|
VectorChangedEventHandler(VectorChangedEventHandler&&) noexcept = default;
|
|
VectorChangedEventHandler& operator=(VectorChangedEventHandler const&) & noexcept = default;
|
|
VectorChangedEventHandler& operator=(VectorChangedEventHandler&&) & noexcept = default;
|
|
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();
|
|
PropertySet(PropertySet const&) noexcept = default;
|
|
PropertySet(PropertySet&&) noexcept = default;
|
|
PropertySet& operator=(PropertySet const&) & noexcept = default;
|
|
PropertySet& operator=(PropertySet&&) & noexcept = default;
|
|
};
|
|
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();
|
|
StringMap(StringMap const&) noexcept = default;
|
|
StringMap(StringMap&&) noexcept = default;
|
|
StringMap& operator=(StringMap const&) & noexcept = default;
|
|
StringMap& operator=(StringMap&&) & noexcept = default;
|
|
};
|
|
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();
|
|
ValueSet(ValueSet const&) noexcept = default;
|
|
ValueSet(ValueSet&&) noexcept = default;
|
|
ValueSet& operator=(ValueSet const&) & noexcept = default;
|
|
ValueSet& operator=(ValueSet&&) & noexcept = default;
|
|
};
|
|
}
|
|
#endif
|