LMMS
Loading...
Searching...
No Matches
LICE_CachedFont Class Reference

#include <lice_text.h>

Inheritance diagram for LICE_CachedFont:
LICE_IFont

Classes

struct  charEnt

Public Member Functions

 LICE_CachedFont ()
virtual ~LICE_CachedFont ()
virtual void SetFromHFont (HFONT font, int flags=0)
virtual LICE_pixel SetTextColor (LICE_pixel color)
virtual LICE_pixel SetBkColor (LICE_pixel color)
virtual LICE_pixel SetEffectColor (LICE_pixel color)
virtual int SetBkMode (int bkmode)
virtual void SetCombineMode (int combine, float alpha=1.0f)
virtual int DrawText (LICE_IBitmap *bm, const char *str, int strcnt, RECT *rect, UINT dtFlags)
virtual LICE_pixel GetTextColor ()
virtual HFONT GetHFont ()
virtual int GetLineHeight ()
virtual void SetLineSpacingAdjust (int amt)
Public Member Functions inherited from LICE_IFont
virtual ~LICE_IFont ()

Protected Member Functions

virtual bool DrawGlyph (LICE_IBitmap *bm, unsigned short c, int xpos, int ypos, RECT *clipR)
int DrawTextImpl (LICE_IBitmap *bm, const char *str, int strcnt, RECT *rect, UINT dtFlags)
bool RenderGlyph (unsigned short idx)
const char * NextWordBreak (const char *str, int strcnt, int w)
charEntfindChar (unsigned short c)

Static Protected Member Functions

static int _charSortFunc (const void *a, const void *b)

Protected Attributes

LICE_pixel m_fg
LICE_pixel m_bg
LICE_pixel m_effectcol
int m_bgmode
int m_comb
float m_alpha
int m_flags
int m_line_height
int m_lsadj
charEnt m_lowchars [128]
WDL_TypedBuf< charEntm_extracharlist
WDL_TypedBuf< unsigned char > m_cachestore
HFONT m_font

Constructor & Destructor Documentation

◆ LICE_CachedFont()

LICE_CachedFont::LICE_CachedFont ( )

◆ ~LICE_CachedFont()

LICE_CachedFont::~LICE_CachedFont ( )
virtual

Member Function Documentation

◆ _charSortFunc()

int LICE_CachedFont::_charSortFunc ( const void * a,
const void * b )
staticprotected

◆ DrawGlyph()

bool LICE_CachedFont::DrawGlyph ( LICE_IBitmap * bm,
unsigned short c,
int xpos,
int ypos,
RECT * clipR )
protectedvirtual

◆ DrawText()

virtual int LICE_CachedFont::DrawText ( LICE_IBitmap * bm,
const char * str,
int strcnt,
RECT * rect,
UINT dtFlags )
inlinevirtual

Implements LICE_IFont.

◆ DrawTextImpl()

int LICE_CachedFont::DrawTextImpl ( LICE_IBitmap * bm,
const char * str,
int strcnt,
RECT * rect,
UINT dtFlags )
protected

◆ findChar()

LICE_CachedFont::charEnt * LICE_CachedFont::findChar ( unsigned short c)
protected

◆ GetHFont()

virtual HFONT LICE_CachedFont::GetHFont ( )
inlinevirtual

Implements LICE_IFont.

◆ GetLineHeight()

virtual int LICE_CachedFont::GetLineHeight ( )
inlinevirtual

Implements LICE_IFont.

◆ GetTextColor()

virtual LICE_pixel LICE_CachedFont::GetTextColor ( )
inlinevirtual

Implements LICE_IFont.

◆ NextWordBreak()

const char * LICE_CachedFont::NextWordBreak ( const char * str,
int strcnt,
int w )
protected

◆ RenderGlyph()

bool LICE_CachedFont::RenderGlyph ( unsigned short idx)
protected

◆ SetBkColor()

virtual LICE_pixel LICE_CachedFont::SetBkColor ( LICE_pixel color)
inlinevirtual

Implements LICE_IFont.

◆ SetBkMode()

virtual int LICE_CachedFont::SetBkMode ( int bkmode)
inlinevirtual

Implements LICE_IFont.

◆ SetCombineMode()

virtual void LICE_CachedFont::SetCombineMode ( int combine,
float alpha = 1.0f )
inlinevirtual

Implements LICE_IFont.

◆ SetEffectColor()

virtual LICE_pixel LICE_CachedFont::SetEffectColor ( LICE_pixel color)
inlinevirtual

Implements LICE_IFont.

◆ SetFromHFont()

void LICE_CachedFont::SetFromHFont ( HFONT font,
int flags = 0 )
virtual

Implements LICE_IFont.

◆ SetLineSpacingAdjust()

virtual void LICE_CachedFont::SetLineSpacingAdjust ( int amt)
inlinevirtual

Implements LICE_IFont.

◆ SetTextColor()

virtual LICE_pixel LICE_CachedFont::SetTextColor ( LICE_pixel color)
inlinevirtual

Implements LICE_IFont.

Member Data Documentation

◆ m_alpha

float LICE_CachedFont::m_alpha
protected

◆ m_bg

LICE_pixel LICE_CachedFont::m_bg
protected

◆ m_bgmode

int LICE_CachedFont::m_bgmode
protected

◆ m_cachestore

WDL_TypedBuf<unsigned char> LICE_CachedFont::m_cachestore
protected

◆ m_comb

int LICE_CachedFont::m_comb
protected

◆ m_effectcol

LICE_pixel LICE_CachedFont::m_effectcol
protected

◆ m_extracharlist

WDL_TypedBuf<charEnt> LICE_CachedFont::m_extracharlist
protected

◆ m_fg

LICE_pixel LICE_CachedFont::m_fg
protected

◆ m_flags

int LICE_CachedFont::m_flags
protected

◆ m_font

HFONT LICE_CachedFont::m_font
protected

◆ m_line_height

int LICE_CachedFont::m_line_height
protected

◆ m_lowchars

charEnt LICE_CachedFont::m_lowchars[128]
protected

◆ m_lsadj

int LICE_CachedFont::m_lsadj
protected

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