Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FCanvasItem
- FCanvasTextItemBase
- FCanvasSimpleTextItem
- FCanvasTextItem
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/CanvasItem.h |
| Include | #include "CanvasItem.h" |
Syntax
class FCanvasTextItem : public FCanvasSimpleTextItem
Remarks
Text item with misc optional items such as shadow, centering etc. This class operates on FText.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FText | Text | The text to draw. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCanvasTextItem
(
const FVector2D& InPosition, |
Constructor. | ||
FCanvasTextItem
(
const FVector2D& InPosition, |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DrawStringInternal_OfflineCache
(
FCanvas* InCanvas, |
Internal string draw.In a method to make it simpler to do effects like shadow, outline | |
| void | DrawStringInternal_RuntimeCache
(
FCanvas* InCanvas, |
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? |