ScummVM API documentation
Sci::GfxFontFromResource Class Reference

#include <scifont.h>

Inheritance diagram for Sci::GfxFontFromResource:
Sci::GfxFont

Public Member Functions

 GfxFontFromResource (ResourceManager *resMan, GfxScreen *screen, GuiResourceId resourceId)
 
GuiResourceId getResourceId () override
 
uint8 getHeight () override
 
uint8 getCharWidth (uint16 chr) override
 
void draw (uint16 chr, int16 top, int16 left, byte color, bool greyedOutput) override
 
- Public Member Functions inherited from Sci::GfxFont
virtual GuiResourceId getResourceId ()
 
virtual byte getHeight ()
 
virtual bool isDoubleByte (uint16 chr)
 
virtual byte getCharWidth (uint16 chr)
 
virtual byte getCharHeight (uint16 chr)
 
virtual void draw (uint16 chr, int16 top, int16 left, byte color, bool greyedOutput)
 
virtual void drawToBuffer (uint16 chr, int16 top, int16 left, byte color, bool greyedOutput, byte *buffer, int16 width, int16 height)
 

Detailed Description

Font class, handles loading of font resources and drawing characters to screen every font resource has its own instance of this class

Member Function Documentation

◆ getResourceId()

GuiResourceId Sci::GfxFontFromResource::getResourceId ( )
overridevirtual

Reimplemented from Sci::GfxFont.

◆ getHeight()

uint8 Sci::GfxFontFromResource::getHeight ( )
overridevirtual

Reimplemented from Sci::GfxFont.

◆ getCharWidth()

uint8 Sci::GfxFontFromResource::getCharWidth ( uint16  chr)
overridevirtual

Reimplemented from Sci::GfxFont.

◆ draw()

void Sci::GfxFontFromResource::draw ( uint16  chr,
int16  top,
int16  left,
byte  color,
bool  greyedOutput 
)
overridevirtual

Reimplemented from Sci::GfxFont.


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