TORCS  1.3.9
The Open Racing Car Simulator
GfuiFontClass Class Reference

#include <guifont.h>

Collaboration diagram for GfuiFontClass:

Public Member Functions

 GfuiFontClass (char *font)
 
 ~GfuiFontClass ()
 
void create (int point_size)
 
void output (int x, int y, const char *text)
 
int getWidth (const char *text)
 
int getHeight () const
 
int getDescender () const
 

Protected Attributes

GLFONTfont
 
float size
 

Detailed Description

Definition at line 39 of file guifont.h.

Constructor & Destructor Documentation

◆ GfuiFontClass()

GfuiFontClass::GfuiFontClass ( char *  font)

Definition at line 104 of file guifont.cpp.

Here is the call graph for this function:

◆ ~GfuiFontClass()

GfuiFontClass::~GfuiFontClass ( )

Definition at line 201 of file guifont.cpp.

Member Function Documentation

◆ create()

void GfuiFontClass::create ( int  point_size)

Definition at line 211 of file guifont.cpp.

◆ getDescender()

int GfuiFontClass::getDescender ( ) const

Definition at line 272 of file guifont.cpp.

◆ getHeight()

int GfuiFontClass::getHeight ( ) const

Definition at line 261 of file guifont.cpp.

◆ getWidth()

int GfuiFontClass::getWidth ( const char *  text)

Definition at line 222 of file guifont.cpp.

◆ output()

void GfuiFontClass::output ( int  x,
int  y,
const char *  text 
)

Definition at line 280 of file guifont.cpp.

Member Data Documentation

◆ font

GLFONT* GfuiFontClass::font
protected

Definition at line 42 of file guifont.h.

◆ size

float GfuiFontClass::size
protected

Definition at line 43 of file guifont.h.


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