Editable texts should implement this class and maintain an object of this type after registering it. 更多...
#include <ITextInputMethodSystem.h>
Public 成员函数 | |
| virtual void | BeginComposition ()=0 |
| Begins composition. | |
| virtual void | EndComposition ()=0 |
| Ends composition. 更多... | |
| virtual int32 | GetCharacterIndexFromPoint (const FVector2D &InPoint)=0 |
| Gets the index of the code point at the point on the screen. 更多... | |
| virtual void | GetScreenBounds (FVector2D &OutPosition, FVector2D &OutSize)=0 |
| Measures the screen-space bounds of the display area available for text. 更多... | |
| virtual void | GetSelectionRange (uint32 &OutBeginIndex, uint32 &OutLength, ECaretPosition &OutCaretPosition)=0 |
| Gets the range of code point indices that are selected and which end of the selection the caret is at. 更多... | |
| virtual bool | GetTextBounds (const uint32 InBeginIndex, const uint32 InLength, FVector2D &OutPosition, FVector2D &OutSize)=0 |
| Measures the screen-space bounds of the text in the specified range of code points. 更多... | |
| virtual void | GetTextInRange (const uint32 InBeginIndex, const uint32 InLength, FString &OutString)=0 |
| Gets the code points in a range of indices. 更多... | |
| virtual uint32 | GetTextLength ()=0 |
| Returns the number of code points in the text. 更多... | |
| virtual TSharedPtr< FGenericWindow > | GetWindow ()=0 |
| Returns the window in which the text is displayed. 更多... | |
| virtual bool | IsComposing ()=0 |
| Returns whether or not this context is currently composing. 更多... | |
| virtual bool | IsReadOnly ()=0 |
| Returns whether or not this text is read-only. 更多... | |
| virtual void | SetSelectionRange (const uint32 InBeginIndex, const uint32 InLength, const ECaretPosition InCaretPosition)=0 |
| Sets the range of code point indices that are selected and which end of the selection the caret is at. 更多... | |
| virtual void | SetTextInRange (const uint32 InBeginIndex, const uint32 InLength, const FString &InString)=0 |
| Sets the code points in a range of indices. 更多... | |
| virtual void | UpdateCompositionRange (const int32 InBeginIndex, const uint32 InLength)=0 |
| Updates the range of code point indices being composed. 更多... | |
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.
|
pure virtual |
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. |
|
pure virtual |
Returns the number of code points in the text.
|
pure virtual |
Returns the window in which the text is displayed.
|
pure virtual |
Returns whether or not this context is currently composing.
|
pure virtual |
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. |