#include <CanvasItem.h>
|
| | FCanvasSimpleTextItem (const FVector2D &InPosition, const UFont *InFont, const FLinearColor &InColor) |
| |
| | FCanvasSimpleTextItem (const FVector2D &InPosition, const FSlateFontInfo &InFontInfo, const FLinearColor &InColor) |
| |
| virtual | ~FCanvasSimpleTextItem () override=default |
| |
| ENGINE_API | FCanvasTextItemBase (const FVector2D &InPosition, const FLinearColor &InColor) |
| |
| virtual ENGINE_API | ~FCanvasTextItemBase () |
| |
| void | EnableShadow (const FLinearColor &InColor, const FVector2D &InOffset=FVector2D(1.0f, 1.0f)) |
| |
| void | DisableShadow () |
| |
| virtual ENGINE_API void | Draw (FCanvas *InCanvas) override |
| |
| virtual void | SetColor (const FLinearColor &InColor) override final |
| |
| virtual void | Draw (FCanvas *InCanvas)=0 |
| |
| virtual void | Draw (FCanvas *InCanvas, const FVector2D &InPosition) |
| |
| virtual void | Draw (FCanvas *InCanvas, float X, float Y) |
| |
| | FCanvasItem (const FVector2D &InPosition) |
| |
| virtual | ~FCanvasItem () |
| |
|
| ENGINE_API EFontCacheType | GetFontCacheType () const |
| |
| virtual bool | HasValidText () const override=0 |
| |
| virtual ENGINE_API ESimpleElementBlendMode | GetTextBlendMode (const bool bHasShadow) const override |
| |
| virtual FVector2D | GetTextSize (float DPIScale) const override=0 |
| |
| virtual void | DrawStringInternal (FCanvas *InCanvas, const FVector2D &DrawPos, const FLinearColor &DrawColor, TArrayView< FTextEffect > Offsets) override=0 |
| |
| ENGINE_API FVector2D | GetTextSizeInternal (FStringView Text, float DPIScale) const |
| |
| ENGINE_API void | DrawStringInternal (FCanvas *InCanvas, FStringView Text, const FVector2D &DrawPos, const FLinearColor &DrawColor, TArrayView< FTextEffect > TextEffects) |
| |
| ENGINE_API void | DrawStringInternal_OfflineCache (FCanvas *InCanvas, FStringView Text, const FVector2D &DrawPos, const FLinearColor &DrawColor, TArrayView< FTextEffect > TextEffects) |
| |
| ENGINE_API void | DrawStringInternal_RuntimeCache (FCanvas *InCanvas, FStringView Text, const FVector2D &DrawPos, const FLinearColor &DrawColor, TArrayView< FTextEffect > TextEffects) |
| |
◆ FCanvasSimpleTextItem() [1/2]
Constructor.
- Parameters
-
| InPosition | Draw position. |
| InFont | Font to draw with. |
| InColor | Color to draw the text with. |
◆ FCanvasSimpleTextItem() [2/2]
Constructor.
- Parameters
-
| InPosition | Draw position. |
| InFontInfo | Font info to draw with. |
| InColor | Color to draw the text with. |
◆ ~FCanvasSimpleTextItem()
| virtual FCanvasSimpleTextItem::~FCanvasSimpleTextItem |
( |
| ) |
|
|
overridevirtualdefault |
◆ DrawStringInternal() [1/2]
|
|
overrideprotectedpure virtual |
◆ DrawStringInternal() [2/2]
◆ DrawStringInternal_OfflineCache()
Internal string draw
In a method to make it simpler to do effects like shadow, outline
◆ DrawStringInternal_RuntimeCache()
◆ GetFontCacheType()
Get the type of font cache the UFont is using
◆ GetTextBlendMode()
◆ GetTextSize()
|
|
overrideprotectedpure virtual |
◆ GetTextSizeInternal()
◆ HasValidText()
| bool FCanvasSimpleTextItem::HasValidText |
( |
| ) |
const |
|
overrideprotectedpure virtual |
◆ Font
| const UFont* FCanvasSimpleTextItem::Font |
◆ SlateFontInfo
Font info to draw the text with.
The documentation for this class was generated from the following files: