Navigation
API > API/Runtime > API/Runtime/Engine
Text item with misc optional items such as shadow, centering etc. This class operates on FStringView - ensure that the underlying string is valid for the lifetime of the string view stored in this class.
| Name | FCanvasTextStringViewItem |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/CanvasItem.h |
| Include Path | #include "CanvasItem.h" |
Syntax
class FCanvasTextStringViewItem : public FCanvasSimpleTextItem
Inheritance Hierarchy
- FCanvasItem → FCanvasTextItemBase → FCanvasSimpleTextItem → FCanvasTextStringViewItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCanvasTextStringViewItem
(
const FVector2D& InPosition, |
Constructor. | CanvasItem.h | |
FCanvasTextStringViewItem
(
const FVector2D& InPosition, |
Constructor. | CanvasItem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FCanvasTextStringViewItem() |
CanvasItem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Text | FStringView | The text to draw. | CanvasItem.h |
Functions
Public
Protected
Overridden from FCanvasTextItemBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawStringInternal
(
FCanvas* InCanvas, |
Internal string drawIn a method to make it simpler to do effects like shadow, outline | CanvasItem.h | |
virtual FVector2D GetTextSize
(
float DPIScale |
Get the measured size of the text to draw | CanvasItem.h | |
virtual bool HasValidText() |
Does this text item have valid text to draw? | CanvasItem.h |