// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Phone_UI_Core_0_H #define WINRT_Windows_Phone_UI_Core_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Phone::UI::Core { enum class CoreInputScope : int32_t { Default = 0, Url = 1, EmailSmtpAddress = 5, Number = 29, TelephoneNumber = 32, Text = 49, Search = 51, }; struct ICoreSelectionChangedEventArgs; struct ICoreTextChangedEventArgs; struct ICoreWindowKeyboardInput; struct IKeyboardInputBuffer; struct CoreSelectionChangedEventArgs; struct CoreTextChangedEventArgs; struct KeyboardInputBuffer; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.CoreSelectionChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.CoreTextChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.KeyboardInputBuffer"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.CoreInputScope"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.ICoreSelectionChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.ICoreTextChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.ICoreWindowKeyboardInput"; template <> inline constexpr auto& name_v = L"Windows.Phone.UI.Core.IKeyboardInputBuffer"; template <> inline constexpr guid guid_v{ 0xC2941949,0x3955,0x4EC2,{ 0x8F,0x88,0x3F,0x2B,0xFC,0x04,0xD0,0xF1 } }; // C2941949-3955-4EC2-8F88-3F2BFC04D0F1 template <> inline constexpr guid guid_v{ 0x7E3C9572,0x60E4,0x4FEB,{ 0x86,0x83,0x4C,0xF0,0xE0,0xFA,0x76,0x59 } }; // 7E3C9572-60E4-4FEB-8683-4CF0E0FA7659 template <> inline constexpr guid guid_v{ 0x196B175E,0x1A33,0x4B17,{ 0x99,0x35,0x33,0x8E,0xF6,0x44,0x34,0x77 } }; // 196B175E-1A33-4B17-9935-338EF6443477 template <> inline constexpr guid guid_v{ 0x3776EE93,0x8079,0x40CC,{ 0x8C,0x2F,0xA7,0xA9,0x97,0xCF,0x9D,0x6E } }; // 3776EE93-8079-40CC-8C2F-A7A997CF9D6E template <> struct default_interface{ using type = winrt::Windows::Phone::UI::Core::ICoreSelectionChangedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Phone::UI::Core::ICoreTextChangedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Phone::UI::Core::IKeyboardInputBuffer; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Start(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_Length(uint32_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Start(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_OldLength(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_NewText(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_IsKeyboardInputEnabled(bool*) noexcept = 0; virtual int32_t __stdcall put_IsKeyboardInputEnabled(bool) noexcept = 0; virtual int32_t __stdcall get_KeyboardInputBuffer(void**) noexcept = 0; virtual int32_t __stdcall put_KeyboardInputBuffer(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Text(void**) noexcept = 0; virtual int32_t __stdcall put_Text(void*) noexcept = 0; virtual int32_t __stdcall get_SelectionStart(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_SelectionLength(uint32_t*) noexcept = 0; virtual int32_t __stdcall Select(uint32_t, uint32_t) noexcept = 0; virtual int32_t __stdcall SelectFromTap(uint32_t) noexcept = 0; virtual int32_t __stdcall get_InputScope(int32_t*) noexcept = 0; virtual int32_t __stdcall put_InputScope(int32_t) noexcept = 0; virtual int32_t __stdcall add_TextChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_TextChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_SelectionChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_SelectionChanged(winrt::event_token) noexcept = 0; }; }; template struct consume_Windows_Phone_UI_Core_ICoreSelectionChangedEventArgs { [[nodiscard]] auto Start() const; [[nodiscard]] auto Length() const; }; template <> struct consume { template using type = consume_Windows_Phone_UI_Core_ICoreSelectionChangedEventArgs; }; template struct consume_Windows_Phone_UI_Core_ICoreTextChangedEventArgs { [[nodiscard]] auto Start() const; [[nodiscard]] auto OldLength() const; [[nodiscard]] auto NewText() const; }; template <> struct consume { template using type = consume_Windows_Phone_UI_Core_ICoreTextChangedEventArgs; }; template struct consume_Windows_Phone_UI_Core_ICoreWindowKeyboardInput { [[nodiscard]] auto IsKeyboardInputEnabled() const; auto IsKeyboardInputEnabled(bool value) const; [[nodiscard]] auto KeyboardInputBuffer() const; auto KeyboardInputBuffer(winrt::Windows::Phone::UI::Core::KeyboardInputBuffer const& value) const; }; template <> struct consume { template using type = consume_Windows_Phone_UI_Core_ICoreWindowKeyboardInput; }; template struct consume_Windows_Phone_UI_Core_IKeyboardInputBuffer { [[nodiscard]] auto Text() const; auto Text(param::hstring const& value) const; [[nodiscard]] auto SelectionStart() const; [[nodiscard]] auto SelectionLength() const; auto Select(uint32_t start, uint32_t length) const; auto SelectFromTap(uint32_t characterIndex) const; [[nodiscard]] auto InputScope() const; auto InputScope(winrt::Windows::Phone::UI::Core::CoreInputScope const& value) const; auto TextChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using TextChanged_revoker = impl::event_revoker::remove_TextChanged>; [[nodiscard]] auto TextChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto TextChanged(winrt::event_token const& cookie) const noexcept; auto SelectionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using SelectionChanged_revoker = impl::event_revoker::remove_SelectionChanged>; [[nodiscard]] auto SelectionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto SelectionChanged(winrt::event_token const& cookie) const noexcept; }; template <> struct consume { template using type = consume_Windows_Phone_UI_Core_IKeyboardInputBuffer; }; } #endif