Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCanvas
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void MeasureStringInternal
(
FTextSizingParameters& Parameters, |
Measures a string, optionally stopped after the specified horizontal offset in pixels is reached. | Engine/Canvas.h | |
static void MeasureStringInternal
(
FTextSizingParameters& Parameters, |
Engine/Canvas.h |
MeasureStringInternal(FTextSizingParameters &, FStringView, const int32, const ELastCharacterIndexFormat, int32 &)
Description
Measures a string, optionally stopped after the specified horizontal offset in pixels is reached.
| Name | MeasureStringInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path | #include "Engine/Canvas.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
static void MeasureStringInternal
(
FTextSizingParameters & Parameters,
FStringView Text,
const int32 StopAfterHorizontalOffset,
const ELastCharacterIndexFormat CharIndexFormat,
int32 & OutLastCharacterIndex
)
Parameters
| Name | Remarks |
|---|---|
| Parameters | Used for various purposes DrawXL: [out] will be set to the width of the string DrawYL: [out] will be set to the height of the string DrawFont: [in] specifies the font to use for retrieving the size of the characters in the string Scale: [in] specifies the amount of scaling to apply to the string |
| Text | The string to calculate the size for |
| StopAfterHorizontalOffset | Offset horizontally into the string to stop measuring characters after, in pixels (or INDEX_NONE) |
| CharIndexFormat | Behavior to use for StopAfterHorizontalOffset |
| OutLastCharacterIndex | The index of the last character processed (used with StopAfterHorizontalOffset) |
MeasureStringInternal(FTextSizingParameters &, const TCHAR *const, const int32, const int32, const ELastCharacterIndexFormat, int32 &)
| Name | MeasureStringInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path | #include "Engine/Canvas.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
static void MeasureStringInternal
(
FTextSizingParameters & Parameters,
const TCHAR *const Text,
const int32 TextLength,
const int32 StopAfterHorizontalOffset,
const ELastCharacterIndexFormat CharIndexFormat,
int32 & OutLastCharacterIndex
)