Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TextEditContext Class Reference

Public Types

enum class  CaretUpdate : uchar {
  Left = 0 , Right = 1 , Up = 2 , Down = 3 ,
  Begin = 4 , End = 5
}
enum class  TextEditAction : uchar {
  Backspace = 0 , Copy = 1 , Cut = 2 , Delete = 3 ,
  Newline = 4 , Paste = 5 , SelectAll = 6
}
enum class  CaretUpdate : uchar {
  Left = 0 , Right = 1 , Up = 2 , Down = 3 ,
  Begin = 4 , End = 5
}
enum class  TextEditAction : uchar {
  Backspace = 0 , Copy = 1 , Cut = 2 , Delete = 3 ,
  Newline = 4 , Paste = 5 , SelectAll = 6
}

Public Member Functions

MCAPI void _onBackspace ()
MCAPI void _onCopy ()
MCAPI void _setText (::std::string_view newUtf8Text)
MCAPI void feedAction (::TextEditContext::TextEditAction action)
MCAPI void feedCaretUpdate (::TextEditContext::CaretUpdate caretMovement)
MCAPI void feedText (::std::string_view utf8Text)
MCAPI::std::string const getText () const

Public Attributes

::ll::TypedStorage< 1, 1, bool > mIsEnabled
::ll::TypedStorage< 1, 1, bool > mCtrlDown
::ll::TypedStorage< 8, 32, ::std::string > mCurrentUtf8Text
::ll::TypedStorage< 4, 4, int > mCaret
::ll::TypedStorage< 1, 1, bool > mHighlightSelection
::ll::TypedStorage< 4, 4, int > mMaxLength
::ll::TypedStorage< 4, 8, ::TextRange > mSelection
::ll::TypedStorage< 8, 8, ::IKeyboardProxy * > mKeyboard
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::IKeyboardProxy > > mKeyboardProxy

Member Function Documentation

◆ _onBackspace()

MCAPI void TextEditContext::_onBackspace ( )
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.

◆ _onCopy()

MCAPI void TextEditContext::_onCopy ( )
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.

◆ _setText()

MCAPI void TextEditContext::_setText ( ::std::string_view newUtf8Text)
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.

◆ feedAction()

MCAPI void TextEditContext::feedAction ( ::TextEditContext::TextEditAction action)
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.

◆ feedCaretUpdate()

MCAPI void TextEditContext::feedCaretUpdate ( ::TextEditContext::CaretUpdate caretMovement)
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.

◆ getText()

MCAPI::std::string const TextEditContext::getText ( ) const
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: