// 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_Core_H #define WINRT_Windows_UI_Input_Inking_Core_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.Foundation.Numerics.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Windows.UI.Input.Inking.2.h" #include "winrt/impl/Windows.UI.Input.Inking.Core.2.h" namespace winrt::impl { template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStroke::AppendInkPoints(param::iterable const& inkPoints) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStroke)->AppendInkPoints(*(void**)(&inkPoints), put_abi(result))); return result; } template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStroke::CreateInkStroke() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStroke)->CreateInkStroke(&result)); return winrt::Windows::UI::Input::Inking::InkStroke{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStroke::DrawingAttributes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStroke)->get_DrawingAttributes(&value)); return winrt::Windows::UI::Input::Inking::InkDrawingAttributes{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStroke::PointTransform() const { winrt::Windows::Foundation::Numerics::float3x2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStroke)->get_PointTransform(put_abi(value))); return value; } template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStroke::BoundingRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStroke)->get_BoundingRect(put_abi(value))); return value; } template auto consume_Windows_UI_Input_Inking_Core_ICoreIncrementalInkStrokeFactory::Create(winrt::Windows::UI::Input::Inking::InkDrawingAttributes const& drawingAttributes, winrt::Windows::Foundation::Numerics::float3x2 const& pointTransform) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreIncrementalInkStrokeFactory)->Create(*(void**)(&drawingAttributes), impl::bind_in(pointTransform), &result)); return winrt::Windows::UI::Input::Inking::Core::CoreIncrementalInkStroke{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerEntering(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerEntering(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerEntering(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerEntering(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerEntering(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerEntering(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerHovering(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerHovering(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerHovering(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerHovering(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerHovering(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerHovering(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerExiting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerExiting(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerExiting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerExiting(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerExiting(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerExiting(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerPressing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerPressing(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerPressing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerPressing(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerPressing(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerPressing(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerMoving(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerMoving(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerMoving(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerMoving(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerMoving(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerMoving(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerReleasing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerReleasing(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerReleasing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerReleasing(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerReleasing(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerReleasing(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerLost(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->add_PointerLost(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerLost(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PointerLost(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::PointerLost(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->remove_PointerLost(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource::InkPresenter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource)->get_InkPresenter(&value)); return winrt::Windows::UI::Input::Inking::InkPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource2::PointerCursor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource2)->get_PointerCursor(&value)); return winrt::Windows::UI::Core::CoreCursor{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSource2::PointerCursor(winrt::Windows::UI::Core::CoreCursor const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSource2)->put_PointerCursor(*(void**)(&value))); } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkIndependentInputSourceStatics::Create(winrt::Windows::UI::Input::Inking::InkPresenter const& inkPresenter) const { void* inkIndependentInputSource{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkIndependentInputSourceStatics)->Create(*(void**)(&inkPresenter), &inkIndependentInputSource)); return winrt::Windows::UI::Input::Inking::Core::CoreInkIndependentInputSource{ inkIndependentInputSource, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkPresenterHost::InkPresenter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkPresenterHost)->get_InkPresenter(&value)); return winrt::Windows::UI::Input::Inking::InkPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkPresenterHost::RootVisual() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkPresenterHost)->get_RootVisual(&value)); return winrt::Windows::UI::Composition::ContainerVisual{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreInkPresenterHost::RootVisual(winrt::Windows::UI::Composition::ContainerVisual const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreInkPresenterHost)->put_RootVisual(*(void**)(&value))); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateEventArgs::NewInkPoints() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateEventArgs)->get_NewInkPoints(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateEventArgs::PointerId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateEventArgs)->get_PointerId(&value)); return value; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateEventArgs::Disposition() const { winrt::Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateEventArgs)->get_Disposition(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateEventArgs::Disposition(winrt::Windows::UI::Input::Inking::Core::CoreWetStrokeDisposition const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateEventArgs)->put_Disposition(static_cast(value))); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->add_WetStrokeStarting(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WetStrokeStarting(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStarting(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->remove_WetStrokeStarting(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeContinuing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->add_WetStrokeContinuing(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeContinuing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WetStrokeContinuing(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeContinuing(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->remove_WetStrokeContinuing(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStopping(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->add_WetStrokeStopping(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStopping(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WetStrokeStopping(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeStopping(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->remove_WetStrokeStopping(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->add_WetStrokeCompleted(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WetStrokeCompleted(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCompleted(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->remove_WetStrokeCompleted(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCanceled(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->add_WetStrokeCanceled(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCanceled(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WetStrokeCanceled(handler)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::WetStrokeCanceled(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->remove_WetStrokeCanceled(impl::bind_in(cookie)); } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSource::InkPresenter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSource)->get_InkPresenter(&value)); return winrt::Windows::UI::Input::Inking::InkPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Input_Inking_Core_ICoreWetStrokeUpdateSourceStatics::Create(winrt::Windows::UI::Input::Inking::InkPresenter const& inkPresenter) const { void* WetStrokeUpdateSource{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Input::Inking::Core::ICoreWetStrokeUpdateSourceStatics)->Create(*(void**)(&inkPresenter), &WetStrokeUpdateSource)); return winrt::Windows::UI::Input::Inking::Core::CoreWetStrokeUpdateSource{ WetStrokeUpdateSource, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AppendInkPoints(void* inkPoints, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AppendInkPoints(*reinterpret_cast const*>(&inkPoints))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInkStroke(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateInkStroke()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DrawingAttributes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DrawingAttributes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointTransform(winrt::Windows::Foundation::Numerics::float3x2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointTransform()); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* drawingAttributes, winrt::Windows::Foundation::Numerics::float3x2 pointTransform, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&drawingAttributes), *reinterpret_cast(&pointTransform))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PointerEntering(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerEntering(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerEntering(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerEntering(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerHovering(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerHovering(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerHovering(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerHovering(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerExiting(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerExiting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerExiting(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerExiting(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerPressing(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerPressing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerPressing(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerPressing(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerMoving(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerMoving(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerMoving(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerMoving(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerReleasing(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerReleasing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerReleasing(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerReleasing(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_PointerLost(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().PointerLost(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerLost(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerLost(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall get_InkPresenter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InkPresenter()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PointerCursor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerCursor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerCursor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerCursor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* inkPresenter, void** inkIndependentInputSource) noexcept final try { clear_abi(inkIndependentInputSource); typename D::abi_guard guard(this->shim()); *inkIndependentInputSource = detach_from(this->shim().Create(*reinterpret_cast(&inkPresenter))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InkPresenter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InkPresenter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RootVisual(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RootVisual()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RootVisual(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RootVisual(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NewInkPoints(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().NewInkPoints()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Disposition(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Disposition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Disposition(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disposition(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_WetStrokeStarting(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().WetStrokeStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WetStrokeStarting(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WetStrokeStarting(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_WetStrokeContinuing(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().WetStrokeContinuing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WetStrokeContinuing(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WetStrokeContinuing(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_WetStrokeStopping(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().WetStrokeStopping(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WetStrokeStopping(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WetStrokeStopping(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_WetStrokeCompleted(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().WetStrokeCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WetStrokeCompleted(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WetStrokeCompleted(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall add_WetStrokeCanceled(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().WetStrokeCanceled(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WetStrokeCanceled(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WetStrokeCanceled(*reinterpret_cast(&cookie)); return 0; } int32_t __stdcall get_InkPresenter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InkPresenter()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* inkPresenter, void** WetStrokeUpdateSource) noexcept final try { clear_abi(WetStrokeUpdateSource); typename D::abi_guard guard(this->shim()); *WetStrokeUpdateSource = detach_from(this->shim().Create(*reinterpret_cast(&inkPresenter))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Input::Inking::Core { inline CoreIncrementalInkStroke::CoreIncrementalInkStroke(winrt::Windows::UI::Input::Inking::InkDrawingAttributes const& drawingAttributes, winrt::Windows::Foundation::Numerics::float3x2 const& pointTransform) : CoreIncrementalInkStroke(impl::call_factory([&](ICoreIncrementalInkStrokeFactory const& f) { return f.Create(drawingAttributes, pointTransform); })) { } inline auto CoreInkIndependentInputSource::Create(winrt::Windows::UI::Input::Inking::InkPresenter const& inkPresenter) { return impl::call_factory([&](ICoreInkIndependentInputSourceStatics const& f) { return f.Create(inkPresenter); }); } inline CoreInkPresenterHost::CoreInkPresenterHost() : CoreInkPresenterHost(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto CoreWetStrokeUpdateSource::Create(winrt::Windows::UI::Input::Inking::InkPresenter const& inkPresenter) { return impl::call_factory([&](ICoreWetStrokeUpdateSourceStatics const& f) { return f.Create(inkPresenter); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif