DDraceNetwork Docs
ITextRender Class Referenceabstract

#include <textrender.h>

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

Public Member Functions

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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Member Function Documentation

◆ AdjustFontSize()

virtual int ITextRender::AdjustFontSize ( const char *  pText,
int  TextLength,
int  MaxSize,
int  MaxWidth 
) const
pure virtual

Implemented in CTextRender.

◆ AppendTextContainer()

virtual void ITextRender::AppendTextContainer ( STextContainerIndex  TextContainerIndex,
CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ CalculateTextWidth()

virtual int ITextRender::CalculateTextWidth ( const char *  pText,
int  TextLength,
int  FontWidth,
int  FontSize 
) const
pure virtual

Implemented in CTextRender.

◆ CreateOrAppendTextContainer()

virtual bool ITextRender::CreateOrAppendTextContainer ( STextContainerIndex TextContainerIndex,
CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ CreateTextContainer()

virtual bool ITextRender::CreateTextContainer ( STextContainerIndex TextContainerIndex,
CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ DefaultTextColor()

ColorRGBA ITextRender::DefaultTextColor ( ) const
inline

◆ DefaultTextOutlineColor()

ColorRGBA ITextRender::DefaultTextOutlineColor ( ) const
inline

◆ DefaultTextSelectionColor()

ColorRGBA ITextRender::DefaultTextSelectionColor ( ) const
inline

◆ DeleteTextContainer()

virtual void ITextRender::DeleteTextContainer ( STextContainerIndex TextContainerIndex)
pure virtual

Implemented in CTextRender.

◆ GetBoundingBoxTextContainer()

virtual STextBoundingBox ITextRender::GetBoundingBoxTextContainer ( STextContainerIndex  TextContainerIndex)
pure virtual

Implemented in CTextRender.

◆ GetGlyphOffsetX()

virtual float ITextRender::GetGlyphOffsetX ( int  FontSize,
char  TextCharacter 
) const
pure virtual

Implemented in CTextRender.

◆ GetRenderFlags()

virtual unsigned ITextRender::GetRenderFlags ( ) const
pure virtual

Implemented in CTextRender.

◆ GetTextColor()

virtual ColorRGBA ITextRender::GetTextColor ( ) const
pure virtual

Implemented in CTextRender.

◆ GetTextOutlineColor()

virtual ColorRGBA ITextRender::GetTextOutlineColor ( ) const
pure virtual

Implemented in CTextRender.

◆ GetTextSelectionColor()

virtual ColorRGBA ITextRender::GetTextSelectionColor ( ) const
pure virtual

Implemented in CTextRender.

◆ InterfaceName()

static const char * ITextRender::InterfaceName ( )
inlinestatic

◆ LoadFonts()

virtual bool ITextRender::LoadFonts ( )
pure virtual

Implemented in CTextRender.

◆ MoveCursor()

virtual void ITextRender::MoveCursor ( CTextCursor pCursor,
float  x,
float  y 
) const
pure virtual

Implemented in CTextRender.

◆ OnPreWindowResize()

virtual void ITextRender::OnPreWindowResize ( )
pure virtual

Implemented in CTextRender.

◆ OnWindowResize()

virtual void ITextRender::OnWindowResize ( )
pure virtual

Implemented in CTextRender.

◆ RecreateTextContainer()

virtual void ITextRender::RecreateTextContainer ( STextContainerIndex TextContainerIndex,
CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ RecreateTextContainerSoft()

virtual void ITextRender::RecreateTextContainerSoft ( STextContainerIndex TextContainerIndex,
CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ RenderTextContainer() [1/2]

virtual void ITextRender::RenderTextContainer ( STextContainerIndex  TextContainerIndex,
const ColorRGBA TextColor,
const ColorRGBA TextOutlineColor 
)
pure virtual

Implemented in CTextRender.

◆ RenderTextContainer() [2/2]

virtual void ITextRender::RenderTextContainer ( STextContainerIndex  TextContainerIndex,
const ColorRGBA TextColor,
const ColorRGBA TextOutlineColor,
float  X,
float  Y 
)
pure virtual

Implemented in CTextRender.

◆ SetCursor()

virtual void ITextRender::SetCursor ( CTextCursor pCursor,
float  x,
float  y,
float  FontSize,
int  Flags 
) const
pure virtual

Implemented in CTextRender.

◆ SetCursorPosition()

virtual void ITextRender::SetCursorPosition ( CTextCursor pCursor,
float  x,
float  y 
) const
pure virtual

Implemented in CTextRender.

◆ SetFontLanguageVariant()

virtual void ITextRender::SetFontLanguageVariant ( const char *  pLanguageFile)
pure virtual

Implemented in CTextRender.

◆ SetFontPreset()

virtual void ITextRender::SetFontPreset ( EFontPreset  FontPreset)
pure virtual

Implemented in CTextRender.

◆ SetRenderFlags()

virtual void ITextRender::SetRenderFlags ( unsigned  Flags)
pure virtual

Implemented in CTextRender.

◆ Text()

virtual void ITextRender::Text ( float  x,
float  y,
float  Size,
const char *  pText,
float  LineWidth = -1.0f 
)
pure virtual

Implemented in CTextRender.

◆ TextBoundingBox()

virtual STextBoundingBox ITextRender::TextBoundingBox ( float  Size,
const char *  pText,
int  StrLength = -1,
float  LineWidth = -1.0f,
float  LineSpacing = 0.0f,
int  Flags = 0 
)
pure virtual

Implemented in CTextRender.

◆ TextColor() [1/2]

virtual void ITextRender::TextColor ( ColorRGBA  Color)
pure virtual

Implemented in CTextRender.

◆ TextColor() [2/2]

virtual void ITextRender::TextColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Implemented in CTextRender.

◆ TextEx()

virtual void ITextRender::TextEx ( CTextCursor pCursor,
const char *  pText,
int  Length = -1 
)
pure virtual

Implemented in CTextRender.

◆ TextOutlineColor() [1/2]

virtual void ITextRender::TextOutlineColor ( ColorRGBA  Color)
pure virtual

Implemented in CTextRender.

◆ TextOutlineColor() [2/2]

virtual void ITextRender::TextOutlineColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Implemented in CTextRender.

◆ TextSelectionColor() [1/2]

virtual void ITextRender::TextSelectionColor ( ColorRGBA  Color)
pure virtual

Implemented in CTextRender.

◆ TextSelectionColor() [2/2]

virtual void ITextRender::TextSelectionColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Implemented in CTextRender.

◆ TextWidth()

virtual float ITextRender::TextWidth ( float  Size,
const char *  pText,
int  StrLength = -1,
float  LineWidth = -1.0f,
int  Flags = 0,
const STextSizeProperties TextSizeProps = {} 
)
pure virtual

Implemented in CTextRender.

◆ UploadEntityLayerText()

virtual void ITextRender::UploadEntityLayerText ( const CImageInfo TextImage,
int  TexSubWidth,
int  TexSubHeight,
const char *  pText,
int  Length,
float  x,
float  y,
int  FontSize 
)
pure virtual

Implemented in CTextRender.

◆ UploadTextContainer()

virtual void ITextRender::UploadTextContainer ( STextContainerIndex  TextContainerIndex)
pure virtual

Implemented in CTextRender.


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