FSlateEditableTextLayout::TranslateLocationVertical

Given a location and a Direction to offset, return a new location.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextLayout.h

Include

#include "Widgets/Text/SlateEditableTextLayout.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Text/SlateEditableTextLayout.cpp

Syntax

void TranslateLocationVertical
(
    const FTextLocation & Location,
    int32 NumLinesToMove,
    float GeometryScale,
    FTextLocation & OutCursorPosition,
    TOptional< SlateEditableTextTypes::ECursorAlignment > & OutCursorAlignment
) const

Remarks

Given a location and a Direction to offset, return a new location.

Parameters

Parameter

Description

Location

Cursor location from which to offset

NumLinesToMove

Number of lines to move in a given direction. Positive means down, negative means up.

GeometryScale

Geometry DPI scale at which the widget is being rendered

OutCursorPosition

Fill with the updated cursor position.

OutCursorAlignment

Optionally fill with a new cursor alignment (will be auto-calculated if not set).

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