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)
MCFOLD::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, ::TextRangemSelection
::ll::TypedStorage< 8, 8, ::IKeyboardProxy * > mKeyboard
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::IKeyboardProxy > > mKeyboardProxy

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