ITextInputMethodContext::GetTextBounds

Measures the screen-space bounds of the text in the specified range of code points.

Windows
MacOS
Linux

References

Module

ApplicationCore

Header

/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/ITextInputMethodSystem.h

Include

#include "GenericPlatform/ITextInputMethodSystem.h"

Syntax

bool GetTextBounds
(
    const uint32 InBeginIndex,
    const uint32 InLength,
    FVector2D & OutPosition,
    FVector2D & OutSize
)

Remarks

Measures the screen-space bounds of the text in the specified range of code points.

Returns

True if the specified range of code points is drawn clipped. False otherwise.

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss