DDraceNetwork Docs
IEngineTextRender Class Referenceabstract

#include <textrender.h>

Inheritance diagram for IEngineTextRender:
[legend]
Collaboration diagram for IEngineTextRender:
[legend]

Public Member Functions

virtual void Init ()=0
 
virtual void Shutdown () override=0
 
- Public Member Functions inherited from ITextRender
virtual void SetCursor (CTextCursor *pCursor, float x, float y, float FontSize, int Flags) const =0
 
virtual void MoveCursor (CTextCursor *pCursor, float x, float y) const =0
 
virtual void SetCursorPosition (CTextCursor *pCursor, float x, float y) const =0
 
virtual bool LoadFonts ()=0
 
virtual void SetFontPreset (EFontPreset FontPreset)=0
 
virtual void SetFontLanguageVariant (const char *pLanguageFile)=0
 
virtual void SetRenderFlags (unsigned Flags)=0
 
virtual unsigned GetRenderFlags () const =0
 
ColorRGBA DefaultTextColor () const
 
ColorRGBA DefaultTextOutlineColor () const
 
ColorRGBA DefaultTextSelectionColor () const
 
virtual void TextEx (CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual bool CreateTextContainer (STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual void AppendTextContainer (STextContainerIndex TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual bool CreateOrAppendTextContainer (STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual void RecreateTextContainer (STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual void RecreateTextContainerSoft (STextContainerIndex &TextContainerIndex, CTextCursor *pCursor, const char *pText, int Length=-1)=0
 
virtual void DeleteTextContainer (STextContainerIndex &TextContainerIndex)=0
 
virtual void UploadTextContainer (STextContainerIndex TextContainerIndex)=0
 
virtual void RenderTextContainer (STextContainerIndex TextContainerIndex, const ColorRGBA &TextColor, const ColorRGBA &TextOutlineColor)=0
 
virtual void RenderTextContainer (STextContainerIndex TextContainerIndex, const ColorRGBA &TextColor, const ColorRGBA &TextOutlineColor, float X, float Y)=0
 
virtual STextBoundingBox GetBoundingBoxTextContainer (STextContainerIndex TextContainerIndex)=0
 
virtual void UploadEntityLayerText (const CImageInfo &TextImage, int TexSubWidth, int TexSubHeight, const char *pText, int Length, float x, float y, int FontSize)=0
 
virtual int AdjustFontSize (const char *pText, int TextLength, int MaxSize, int MaxWidth) const =0
 
virtual float GetGlyphOffsetX (int FontSize, char TextCharacter) const =0
 
virtual int CalculateTextWidth (const char *pText, int TextLength, int FontWidth, int FontSize) const =0
 
virtual void TextColor (float r, float g, float b, float a)=0
 
virtual void TextColor (ColorRGBA Color)=0
 
virtual void TextOutlineColor (float r, float g, float b, float a)=0
 
virtual void TextOutlineColor (ColorRGBA Color)=0
 
virtual void TextSelectionColor (float r, float g, float b, float a)=0
 
virtual void TextSelectionColor (ColorRGBA Color)=0
 
virtual void Text (float x, float y, float Size, const char *pText, float LineWidth=-1.0f)=0
 
virtual float TextWidth (float Size, const char *pText, int StrLength=-1, float LineWidth=-1.0f, int Flags=0, const STextSizeProperties &TextSizeProps={})=0
 
virtual STextBoundingBox TextBoundingBox (float Size, const char *pText, int StrLength=-1, float LineWidth=-1.0f, float LineSpacing=0.0f, int Flags=0)=0
 
virtual ColorRGBA GetTextColor () const =0
 
virtual ColorRGBA GetTextOutlineColor () const =0
 
virtual ColorRGBA GetTextSelectionColor () const =0
 
virtual void OnPreWindowResize ()=0
 
virtual void OnWindowResize ()=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Public Member Functions

static const char * InterfaceName ()
 
- Static Public Member Functions inherited from ITextRender
static const char * InterfaceName ()
 

Additional Inherited Members

- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Member Function Documentation

◆ Init()

virtual void IEngineTextRender::Init ( )
pure virtual

Implemented in CTextRender.

◆ InterfaceName()

static const char * IEngineTextRender::InterfaceName ( )
inlinestatic

◆ Shutdown()

virtual void IEngineTextRender::Shutdown ( )
overridepure virtual

Reimplemented from IInterface.

Implemented in CTextRender.


The documentation for this class was generated from the following file: