portable-devtools / msvc /Windows Kits /10 /Include /10.0.26100.0 /cppwinrt /winrt /windows.applicationmodel.preview.notes.h
| // C++/WinRT v2.0.250303.1 | |
| // Copyright (c) Microsoft Corporation. All rights reserved. | |
| // Licensed under the MIT License. | |
| static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); | |
| namespace winrt::impl | |
| { | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotePlacementChangedPreviewEventArgs<D>::ViewId() const | |
| { | |
| int32_t value{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->get_ViewId(&value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs>**)this; | |
| check_hresult(_winrt_abi_type->get_ViewId(&value)); | |
| } | |
| return value; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INoteVisibilityChangedPreviewEventArgs<D>::ViewId() const | |
| { | |
| int32_t value{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->get_ViewId(&value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>**)this; | |
| check_hresult(_winrt_abi_type->get_ViewId(&value)); | |
| } | |
| return value; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INoteVisibilityChangedPreviewEventArgs<D>::IsVisible() const | |
| { | |
| bool value{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->get_IsVisible(&value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs>**)this; | |
| check_hresult(_winrt_abi_type->get_IsVisible(&value)); | |
| } | |
| return value; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::IsScreenLocked() const | |
| { | |
| bool value{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->get_IsScreenLocked(&value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->get_IsScreenLocked(&value)); | |
| } | |
| return value; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::ShowNote(int32_t noteViewId) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->ShowNote(noteViewId)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->ShowNote(noteViewId)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::ShowNoteRelativeTo(int32_t noteViewId, int32_t anchorNoteViewId) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->ShowNoteRelativeTo(noteViewId, anchorNoteViewId)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->ShowNoteRelativeTo(noteViewId, anchorNoteViewId)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::ShowNoteWithPlacement(int32_t noteViewId, winrt::Windows::Storage::Streams::IBuffer const& data) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->ShowNoteWithPlacement(noteViewId, *(void**)(&data))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->ShowNoteWithPlacement(noteViewId, *(void**)(&data))); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::HideNote(int32_t noteViewId) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->HideNote(noteViewId)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->HideNote(noteViewId)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::GetNotePlacement(int32_t noteViewId) const | |
| { | |
| void* data{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->GetNotePlacement(noteViewId, &data)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->GetNotePlacement(noteViewId, &data)); | |
| } | |
| return winrt::Windows::Storage::Streams::IBuffer{ data, take_ownership_from_abi }; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::TrySetNoteSize(int32_t noteViewId, winrt::Windows::Foundation::Size const& size) const | |
| { | |
| bool succeeded{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->TrySetNoteSize(noteViewId, impl::bind_in(size), &succeeded)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->TrySetNoteSize(noteViewId, impl::bind_in(size), &succeeded)); | |
| } | |
| return succeeded; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::SetFocusToNextView() const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->SetFocusToNextView()); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->SetFocusToNextView()); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::SetNotesThumbnailAsync(winrt::Windows::Storage::Streams::IBuffer const& thumbnail) const | |
| { | |
| void* operation{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->SetNotesThumbnailAsync(*(void**)(&thumbnail), &operation)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->SetNotesThumbnailAsync(*(void**)(&thumbnail), &operation)); | |
| } | |
| return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::SystemLockStateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable> const& handler) const | |
| { | |
| winrt::event_token token{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->add_SystemLockStateChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->add_SystemLockStateChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| return token; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::SystemLockStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable> const& handler) const | |
| { | |
| return impl::make_event_revoker<D, SystemLockStateChanged_revoker>(this, SystemLockStateChanged(handler)); | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::SystemLockStateChanged(winrt::event_token const& token) const noexcept | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| _winrt_abi_type->remove_SystemLockStateChanged(impl::bind_in(token)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| _winrt_abi_type->remove_SystemLockStateChanged(impl::bind_in(token)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NotePlacementChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs> const& handler) const | |
| { | |
| winrt::event_token token{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->add_NotePlacementChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->add_NotePlacementChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| return token; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NotePlacementChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs> const& handler) const | |
| { | |
| return impl::make_event_revoker<D, NotePlacementChanged_revoker>(this, NotePlacementChanged(handler)); | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NotePlacementChanged(winrt::event_token const& token) const noexcept | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| _winrt_abi_type->remove_NotePlacementChanged(impl::bind_in(token)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| _winrt_abi_type->remove_NotePlacementChanged(impl::bind_in(token)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NoteVisibilityChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs> const& handler) const | |
| { | |
| winrt::event_token token{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->add_NoteVisibilityChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| check_hresult(_winrt_abi_type->add_NoteVisibilityChanged(*(void**)(&handler), put_abi(token))); | |
| } | |
| return token; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NoteVisibilityChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs> const& handler) const | |
| { | |
| return impl::make_event_revoker<D, NoteVisibilityChanged_revoker>(this, NoteVisibilityChanged(handler)); | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview<D>::NoteVisibilityChanged(winrt::event_token const& token) const noexcept | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)&_winrt_casted_result; | |
| _winrt_abi_type->remove_NoteVisibilityChanged(impl::bind_in(token)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview>**)this; | |
| _winrt_abi_type->remove_NoteVisibilityChanged(impl::bind_in(token)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview2<D>::ShowNoteRelativeTo(int32_t noteViewId, int32_t anchorNoteViewId, winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions const& options) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->ShowNoteRelativeToWithOptions(noteViewId, anchorNoteViewId, *(void**)(&options))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)this; | |
| check_hresult(_winrt_abi_type->ShowNoteRelativeToWithOptions(noteViewId, anchorNoteViewId, *(void**)(&options))); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview2<D>::ShowNoteWithPlacement(int32_t noteViewId, winrt::Windows::Storage::Streams::IBuffer const& data, winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions const& options) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->ShowNoteWithPlacementWithOptions(noteViewId, *(void**)(&data), *(void**)(&options))); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)this; | |
| check_hresult(_winrt_abi_type->ShowNoteWithPlacementWithOptions(noteViewId, *(void**)(&data), *(void**)(&options))); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview2<D>::SetFocusToPreviousView() const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->SetFocusToPreviousView()); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)this; | |
| check_hresult(_winrt_abi_type->SetFocusToPreviousView()); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreview2<D>::SetThumbnailImageForTaskSwitcherAsync(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap) const | |
| { | |
| void* action{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->SetThumbnailImageForTaskSwitcherAsync(*(void**)(&bitmap), &action)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2>**)this; | |
| check_hresult(_winrt_abi_type->SetThumbnailImageForTaskSwitcherAsync(*(void**)(&bitmap), &action)); | |
| } | |
| return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreviewShowNoteOptions<D>::ShowWithFocus() const | |
| { | |
| bool value{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->get_ShowWithFocus(&value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>**)this; | |
| check_hresult(_winrt_abi_type->get_ShowWithFocus(&value)); | |
| } | |
| return value; | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreviewShowNoteOptions<D>::ShowWithFocus(bool value) const | |
| { | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->put_ShowWithFocus(value)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions>**)this; | |
| check_hresult(_winrt_abi_type->put_ShowWithFocus(value)); | |
| } | |
| } | |
| template <typename D> auto consume_Windows_ApplicationModel_Preview_Notes_INotesWindowManagerPreviewStatics<D>::GetForCurrentApp() const | |
| { | |
| void* current{}; | |
| if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics>) | |
| { | |
| winrt::hresult _winrt_cast_result_code; | |
| auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics, D const*>(static_cast<D const*>(this), _winrt_cast_result_code); | |
| check_hresult(_winrt_cast_result_code); | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics>**)&_winrt_casted_result; | |
| check_hresult(_winrt_abi_type->GetForCurrentApp(¤t)); | |
| } | |
| else | |
| { | |
| auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics>**)this; | |
| check_hresult(_winrt_abi_type->GetForCurrentApp(¤t)); | |
| } | |
| return winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview{ current, take_ownership_from_abi }; | |
| } | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs> | |
| { | |
| int32_t __stdcall get_ViewId(int32_t* value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *value = detach_from<int32_t>(this->shim().ViewId()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| }; | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs> | |
| { | |
| int32_t __stdcall get_ViewId(int32_t* value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *value = detach_from<int32_t>(this->shim().ViewId()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall get_IsVisible(bool* value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *value = detach_from<bool>(this->shim().IsVisible()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| }; | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview> | |
| { | |
| int32_t __stdcall get_IsScreenLocked(bool* value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *value = detach_from<bool>(this->shim().IsScreenLocked()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall ShowNote(int32_t noteViewId) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowNote(noteViewId); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall ShowNoteRelativeTo(int32_t noteViewId, int32_t anchorNoteViewId) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowNoteRelativeTo(noteViewId, anchorNoteViewId); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall ShowNoteWithPlacement(int32_t noteViewId, void* data) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowNoteWithPlacement(noteViewId, *reinterpret_cast<winrt::Windows::Storage::Streams::IBuffer const*>(&data)); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall HideNote(int32_t noteViewId) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().HideNote(noteViewId); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall GetNotePlacement(int32_t noteViewId, void** data) noexcept final try | |
| { | |
| clear_abi(data); | |
| typename D::abi_guard guard(this->shim()); | |
| *data = detach_from<winrt::Windows::Storage::Streams::IBuffer>(this->shim().GetNotePlacement(noteViewId)); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall TrySetNoteSize(int32_t noteViewId, winrt::Windows::Foundation::Size size, bool* succeeded) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *succeeded = detach_from<bool>(this->shim().TrySetNoteSize(noteViewId, *reinterpret_cast<winrt::Windows::Foundation::Size const*>(&size))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall SetFocusToNextView() noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().SetFocusToNextView(); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall SetNotesThumbnailAsync(void* thumbnail, void** operation) noexcept final try | |
| { | |
| clear_abi(operation); | |
| typename D::abi_guard guard(this->shim()); | |
| *operation = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().SetNotesThumbnailAsync(*reinterpret_cast<winrt::Windows::Storage::Streams::IBuffer const*>(&thumbnail))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall add_SystemLockStateChanged(void* handler, winrt::event_token* token) noexcept final try | |
| { | |
| zero_abi<winrt::event_token>(token); | |
| typename D::abi_guard guard(this->shim()); | |
| *token = detach_from<winrt::event_token>(this->shim().SystemLockStateChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::Foundation::IInspectable> const*>(&handler))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall remove_SystemLockStateChanged(winrt::event_token token) noexcept final | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().SystemLockStateChanged(*reinterpret_cast<winrt::event_token const*>(&token)); | |
| return 0; | |
| } | |
| int32_t __stdcall add_NotePlacementChanged(void* handler, winrt::event_token* token) noexcept final try | |
| { | |
| zero_abi<winrt::event_token>(token); | |
| typename D::abi_guard guard(this->shim()); | |
| *token = detach_from<winrt::event_token>(this->shim().NotePlacementChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs> const*>(&handler))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall remove_NotePlacementChanged(winrt::event_token token) noexcept final | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().NotePlacementChanged(*reinterpret_cast<winrt::event_token const*>(&token)); | |
| return 0; | |
| } | |
| int32_t __stdcall add_NoteVisibilityChanged(void* handler, winrt::event_token* token) noexcept final try | |
| { | |
| zero_abi<winrt::event_token>(token); | |
| typename D::abi_guard guard(this->shim()); | |
| *token = detach_from<winrt::event_token>(this->shim().NoteVisibilityChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview, winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs> const*>(&handler))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall remove_NoteVisibilityChanged(winrt::event_token token) noexcept final | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().NoteVisibilityChanged(*reinterpret_cast<winrt::event_token const*>(&token)); | |
| return 0; | |
| } | |
| }; | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2> | |
| { | |
| int32_t __stdcall ShowNoteRelativeToWithOptions(int32_t noteViewId, int32_t anchorNoteViewId, void* options) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowNoteRelativeTo(noteViewId, anchorNoteViewId, *reinterpret_cast<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions const*>(&options)); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall ShowNoteWithPlacementWithOptions(int32_t noteViewId, void* data, void* options) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowNoteWithPlacement(noteViewId, *reinterpret_cast<winrt::Windows::Storage::Streams::IBuffer const*>(&data), *reinterpret_cast<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions const*>(&options)); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall SetFocusToPreviousView() noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().SetFocusToPreviousView(); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall SetThumbnailImageForTaskSwitcherAsync(void* bitmap, void** action) noexcept final try | |
| { | |
| clear_abi(action); | |
| typename D::abi_guard guard(this->shim()); | |
| *action = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().SetThumbnailImageForTaskSwitcherAsync(*reinterpret_cast<winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>(&bitmap))); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| }; | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions> | |
| { | |
| int32_t __stdcall get_ShowWithFocus(bool* value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| *value = detach_from<bool>(this->shim().ShowWithFocus()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| int32_t __stdcall put_ShowWithFocus(bool value) noexcept final try | |
| { | |
| typename D::abi_guard guard(this->shim()); | |
| this->shim().ShowWithFocus(value); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| }; | |
| template <typename D> | |
| struct produce<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics> : produce_base<D, winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics> | |
| { | |
| int32_t __stdcall GetForCurrentApp(void** current) noexcept final try | |
| { | |
| clear_abi(current); | |
| typename D::abi_guard guard(this->shim()); | |
| *current = detach_from<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview>(this->shim().GetForCurrentApp()); | |
| return 0; | |
| } | |
| catch (...) { return to_hresult(); } | |
| }; | |
| } | |
| WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Preview::Notes | |
| { | |
| inline auto NotesWindowManagerPreview::GetForCurrentApp() | |
| { | |
| return impl::call_factory_cast<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview(*)(INotesWindowManagerPreviewStatics const&), NotesWindowManagerPreview, INotesWindowManagerPreviewStatics>([](INotesWindowManagerPreviewStatics const& f) { return f.GetForCurrentApp(); }); | |
| } | |
| inline NotesWindowManagerPreviewShowNoteOptions::NotesWindowManagerPreviewShowNoteOptions() : | |
| NotesWindowManagerPreviewShowNoteOptions(impl::call_factory_cast<NotesWindowManagerPreviewShowNoteOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), NotesWindowManagerPreviewShowNoteOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<NotesWindowManagerPreviewShowNoteOptions>(); })) | |
| { | |
| } | |
| } | |
| namespace std | |
| { | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INotePlacementChangedPreviewEventArgs> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INoteVisibilityChangedPreviewEventArgs> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreview2> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewShowNoteOptions> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::INotesWindowManagerPreviewStatics> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::NotePlacementChangedPreviewEventArgs> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::NoteVisibilityChangedPreviewEventArgs> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreview> : winrt::impl::hash_base {}; | |
| template<> struct hash<winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions> : winrt::impl::hash_base {}; | |
| } | |