XLE  v0.02.0
Public Member Functions | Public Attributes | List of all members
RenderOverlays::TextStyle Class Reference

Public Member Functions

 TextStyle (Font &font, const DrawTextOptions &options=DrawTextOptions())
 
float Draw (RenderCore::Metal::DeviceContext *renderer, float x, float y, const ucs4 text[], int maxLen, float spaceExtra, float scale, float mx, float depth, unsigned colorARGB, UI_TEXT_STATE textState, bool applyDescender, Quad *q) const
 
Float2 AlignText (const Quad &q, UiAlign align, const ucs4 *text, int maxLen=-1)
 
Float2 AlignText (const Quad &q, UiAlign align, float width, float indent)
 
float StringWidth (const ucs4 *text, int maxlen=-1)
 
int CharCountFromWidth (const ucs4 *text, float width)
 
float SetStringEllipis (const ucs4 *inText, ucs4 *outText, size_t outTextSize, float width)
 
float CharWidth (ucs4 ch, ucs4 prev)
 

Public Attributes

DrawTextOptions _options
 
intrusive_ptr< Font_font
 

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