// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Input_Inking_Analysis_H #define WINRT_Windows_UI_Input_Inking_Analysis_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.UI.Input.Inking.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.Input.Inking.2.h" #include "winrt/impl/Windows.UI.Input.Inking.Analysis.2.h" namespace winrt::impl { template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkBullet::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkBullet)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkDrawing::DrawingKind() const { winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisDrawingKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkDrawing)->get_DrawingKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkDrawing::Center() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkDrawing)->get_Center(put_abi(value))); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkDrawing::Points() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkDrawing)->get_Points(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkWord::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkWord)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisInkWord::TextAlternates() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisInkWord)->get_TextAlternates(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisLine::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisLine)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisLine::IndentLevel() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisLine)->get_IndentLevel(&value)); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisListItem::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisListItem)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_Id(&value)); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::Kind() const { winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisNodeKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::BoundingRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_BoundingRect(put_abi(value))); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::RotatedBoundingRect() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_RotatedBoundingRect(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::Children() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_Children(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::Parent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->get_Parent(&value)); return winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisNode::GetStrokeIds() const { void* strokeIds{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisNode)->GetStrokeIds(&strokeIds)); return winrt::Windows::Foundation::Collections::IVectorView{ strokeIds, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisParagraph::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisParagraph)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisResult::Status() const { winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisRoot::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisRoot)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisRoot::FindNodes(winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisNodeKind const& nodeKind) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisRoot)->FindNodes(static_cast(nodeKind), &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalysisWritingRegion::RecognizedText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalysisWritingRegion)->get_RecognizedText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::AnalysisRoot() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->get_AnalysisRoot(&value)); return winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisRoot{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::IsAnalyzing() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->get_IsAnalyzing(&value)); return value; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::AddDataForStroke(winrt::Windows::UI::Input::Inking::InkStroke const& stroke) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->AddDataForStroke(*(void**)(&stroke))); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::AddDataForStrokes(param::iterable const& strokes) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->AddDataForStrokes(*(void**)(&strokes))); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::ClearDataForAllStrokes() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->ClearDataForAllStrokes()); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::RemoveDataForStroke(uint32_t strokeId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->RemoveDataForStroke(strokeId)); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::RemoveDataForStrokes(param::iterable const& strokeIds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->RemoveDataForStrokes(*(void**)(&strokeIds))); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::ReplaceDataForStroke(winrt::Windows::UI::Input::Inking::InkStroke const& stroke) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->ReplaceDataForStroke(*(void**)(&stroke))); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::SetStrokeDataKind(uint32_t strokeId, winrt::Windows::UI::Input::Inking::Analysis::InkAnalysisStrokeKind const& strokeKind) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->SetStrokeDataKind(strokeId, static_cast(strokeKind))); } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzer::AnalyzeAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzer)->AnalyzeAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Analysis_IInkAnalyzerFactory::CreateAnalyzer() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Analysis::IInkAnalyzerFactory)->CreateAnalyzer(&result)); return winrt::Windows::UI::Input::Inking::Analysis::InkAnalyzer{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DrawingKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DrawingKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Center(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Center()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Points(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Points()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextAlternates(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TextAlternates()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndentLevel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndentLevel()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BoundingRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BoundingRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RotatedBoundingRect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RotatedBoundingRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Children(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Children()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Parent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Parent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetStrokeIds(void** strokeIds) noexcept final try { clear_abi(strokeIds); typename D::abi_guard guard(this->shim()); *strokeIds = detach_from>(this->shim().GetStrokeIds()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindNodes(int32_t nodeKind, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindNodes(*reinterpret_cast(&nodeKind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecognizedText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecognizedText()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AnalysisRoot(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnalysisRoot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAnalyzing(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAnalyzing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDataForStroke(void* stroke) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDataForStroke(*reinterpret_cast(&stroke)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDataForStrokes(void* strokes) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDataForStrokes(*reinterpret_cast const*>(&strokes)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearDataForAllStrokes() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearDataForAllStrokes(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveDataForStroke(uint32_t strokeId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveDataForStroke(strokeId); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveDataForStrokes(void* strokeIds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveDataForStrokes(*reinterpret_cast const*>(&strokeIds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReplaceDataForStroke(void* stroke) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReplaceDataForStroke(*reinterpret_cast(&stroke)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetStrokeDataKind(uint32_t strokeId, int32_t strokeKind) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetStrokeDataKind(strokeId, *reinterpret_cast(&strokeKind)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AnalyzeAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().AnalyzeAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall CreateAnalyzer(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateAnalyzer()); return 0; } catch (...) { return to_hresult(); } }; } WINRT_EXPORT namespace winrt::Windows::UI::Input::Inking::Analysis { inline InkAnalyzer::InkAnalyzer() : InkAnalyzer(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif