LeviLamina
Loading...
Searching...
No Matches
OreUI::TextInputHandler Class Reference
Inheritance diagram for OreUI::TextInputHandler:

Classes

struct  TextInputState

Public Types

using OnTextChangedCallback = ::std::function<void(::OreUI::TextInputResult)>

Public Member Functions

TextInputHandler & operator= (TextInputHandler const &)
 TextInputHandler (TextInputHandler const &)
virtual void OnSelectionChanged (::cohtml::IInputProxy *proxy, ::cohtml::TextInput::Selection selection)
virtual void OnTextChanged (::cohtml::IInputProxy *proxy, char const *addedChars, uint addedCount, char const *removedChars, uint removedCount, uint index)
virtual void OnFocus (::cohtml::IInputProxy *proxy)
virtual void OnBlur (::cohtml::IInputProxy *)
MCAPI void _updateFromInputProxy (::cohtml::IInputProxy &proxy)
MCAPI ::std::optional<::OreUI::TextInputResultcalculateChange (::std::string const &currentInput, ::std::string const &newInput) const
MCAPI::std::string getTextInputText ()
MCAPI void $dtor ()
MCAPI void $OnSelectionChanged (::cohtml::IInputProxy *proxy, ::cohtml::TextInput::Selection selection)
MCAPI void $OnTextChanged (::cohtml::IInputProxy *proxy, char const *addedChars, uint addedCount, char const *removedChars, uint removedCount, uint index)
MCAPI void $OnFocus (::cohtml::IInputProxy *proxy)
MCAPI void $OnBlur (::cohtml::IInputProxy *)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::KeyboardManager & > mKeyboardManager
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::GuiData > > mGuiData
::ll::TypedStorage< 8, 64, ::std::function< void(::OreUI::TextInputResult)> > mOnTextChangedCallback
::ll::TypedStorage< 1, 1, bool > mReportTextInputChanges
::ll::TypedStorage< 8, 96, ::std::optional<::OreUI::TextInputHandler::TextInputState > > mTextInputState

Member Function Documentation

◆ OnSelectionChanged()

virtual void OreUI::TextInputHandler::OnSelectionChanged ( ::cohtml::IInputProxy * proxy,
::cohtml::TextInput::Selection selection )
virtual

Reimplemented from cohtml::ITextInputHandler.

◆ OnTextChanged()

virtual void OreUI::TextInputHandler::OnTextChanged ( ::cohtml::IInputProxy * proxy,
char const * addedChars,
uint addedCount,
char const * removedChars,
uint removedCount,
uint index )
virtual

Reimplemented from cohtml::ITextInputHandler.

◆ OnFocus()

virtual void OreUI::TextInputHandler::OnFocus ( ::cohtml::IInputProxy * proxy)
virtual

Reimplemented from cohtml::ITextInputHandler.

◆ OnBlur()

virtual void OreUI::TextInputHandler::OnBlur ( ::cohtml::IInputProxy * )
virtual

Reimplemented from cohtml::ITextInputHandler.

◆ $vftable()

MCAPI void ** OreUI::TextInputHandler::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: