mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
61 lines
4.0 KiB
C++
61 lines
4.0 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
|
|
|
|
#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 LM> MapChangedEventHandler(weak_ref<O>&& object, LM&& lambda_or_method);
|
|
template <typename O, typename M> MapChangedEventHandler(std::shared_ptr<O>&& object, M method);
|
|
template <typename O, typename LM> MapChangedEventHandler(std::weak_ptr<O>&& object, LM&& lambda_or_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 LM> VectorChangedEventHandler(weak_ref<O>&& object, LM&& lambda_or_method);
|
|
template <typename O, typename M> VectorChangedEventHandler(std::shared_ptr<O>&& object, M method);
|
|
template <typename O, typename LM> VectorChangedEventHandler(std::weak_ptr<O>&& object, LM&& lambda_or_method);
|
|
auto operator()(winrt::Windows::Foundation::Collections::IObservableVector<T> const& sender, winrt::Windows::Foundation::Collections::IVectorChangedEventArgs const& event) const;
|
|
};
|
|
struct WINRT_IMPL_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 WINRT_IMPL_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 WINRT_IMPL_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
|