![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ITextInputMethodSystem.h>
Public Types | |
| enum class | ECaretPosition { Beginning , Ending } |
Editable texts should implement this class and maintain an object of this type after registering it. Methods of this class are called by the system to query contextual information about the state of the editable text. This information is used by the text input method system to provide appropriate processed input. Methods of this class are also called by the system to provide processed text input.
|
strong |
|
inlinevirtual |
Ends composition. May or may not mean the composition was committed.
|
pure virtual |
Gets the index of the code point at the point on the screen.
| InPoint | The 2D point on the screen to test for a code point. |
|
pure virtual |
Measures the screen-space bounds of the display area available for text.
| OutPosition | The screen-space position of the top-left bound of the display area. |
| OutSize | The screen-space size of the of the display area. |
|
pure virtual |
Gets the range of code point indices that are selected and which end of the selection the caret is at.
| OutBeginIndex | The code point index at the beginning of the selection range. |
| OutLength | The number of code points selected after the beginning index. |
| OutCaretPosition | A flag indicating whether the caret is at the beginning or ending of the range. Irrelevant if the Length is zero. |
|
pure virtual |
Measures the screen-space bounds of the text in the specified range of code points.
| InBeginIndex | The code point index at the beginning of the range to measure. |
| InLength | The number of code points to measure after the beginning index. |
| OutPosition | The screen-space position of the top-left bound of the specified range of code points. |
| OutSize | The screen-space size of the of the specified range of code points. |
|
pure virtual |
Gets the code points in a range of indices.
| InBeginIndex | The code point index at the beginning of the range to get. |
| InLength | The number of code points to get after the beginning index. |
| OutString | A string to store the code points being returned. |
Returns the number of code points in the text.
|
pure virtual |
Returns the window in which the text is displayed.
Returns whether or not this context is currently composing.
Returns whether or not this text is read-only.
|
pure virtual |
Sets the range of code point indices that are selected and which end of the selection the caret is at.
| InBeginIndex | The code point index at the beginning of the selection range. |
| InLength | The number of code points selected after the beginning index. |
| InCaretPosition | A flag indicating whether the caret is at the beginning or ending of the range. Irrelevant if the Length is zero. |
|
pure virtual |
Sets the code points in a range of indices.
| InBeginIndex | The code point index at the beginning of the range to set. |
| InLength | The number of code points to set after the beginning index. |
| InString | A string of the code points to be set. |
|
pure virtual |
Updates the range of code point indices being composed. These code points should be displayed in some manner to communicate they are being composed. IE: Highlighted and underlined.
| InBeginIndex | The code point index at the beginning of the range being composed. |
| InLength | The number of code points to measure after the beginning index. |