Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FCanvasItem
- FCanvasTextItemBase
- FCanvasSimpleTextItem
- FCanvasTextStringViewItem
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/CanvasItem.h |
| Include | #include "CanvasItem.h" |
Syntax
class FCanvasTextStringViewItem : public FCanvasSimpleTextItem
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FStringView | Text | The text to draw. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCanvasTextStringViewItem
(
const FVector2D& InPosition, |
Constructor. | ||
FCanvasTextStringViewItem
(
const FVector2D& InPosition, |
Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FCanvasTextItemBase
| Type | Name | Description | |
|---|---|---|---|
| void | DrawStringInternal
(
FCanvas* InCanvas, |
Internal string drawIn a method to make it simpler to do effects like shadow, outline | |
| FVector2D | GetTextSize
(
float DPIScale |
Get the measured size of the text to draw | |
| bool | HasValidText () |
Does this text item have valid text to draw? |