hoa_video::FontProperties Class Reference

A structure which holds properties about fonts. More...

#include <text.h>

Collaboration diagram for hoa_video::FontProperties:

Collaboration graph
[legend]
List of all members.

Public Attributes

int32 ascent
 The height above baseline of font.
int32 descent
 The height below baseline of font.
std::map< uint16, FontGlyph * > * glyph_cache
 A pointer to a cache which holds all of the glyphs used in this font.
int32 height
 The maximum height of all of the glyphs for this font.
int32 line_skip
 SDL_ttf's recommended amount of spacing between lines.
TEXT_SHADOW_STYLE shadow_style
 The style of the text shadow.
int32 shadow_x
 The x offset of the text shadow.
int32 shadow_y
 The y offset of the text shadow.
TTF_Fontttf_font
 A pointer to SDL_TTF's font structure.

Detailed Description

A structure which holds properties about fonts.

****************************************************************************

Definition at line 78 of file text.h.


Member Data Documentation

int32 hoa_video::FontProperties::ascent

The height above baseline of font.

Definition at line 85 of file text.h.

Referenced by hoa_video::GameVideo::_CacheGlyphs().

int32 hoa_video::FontProperties::descent

The height below baseline of font.

Definition at line 87 of file text.h.

Referenced by hoa_video::TextBox::_DrawTextLines().

std::map<uint16, FontGlyph*>* hoa_video::FontProperties::glyph_cache

A pointer to a cache which holds all of the glyphs used in this font.

Definition at line 97 of file text.h.

Referenced by hoa_video::GameVideo::_CacheGlyphs(), hoa_video::GameVideo::_DrawTextHelper(), and hoa_video::GameVideo::_GenTexLine().

int32 hoa_video::FontProperties::height

The maximum height of all of the glyphs for this font.

Definition at line 81 of file text.h.

Referenced by hoa_video::TextBox::_CalculateTextHeight(), and hoa_video::TextBox::_DrawTextLines().

int32 hoa_video::FontProperties::line_skip

SDL_ttf's recommended amount of spacing between lines.

Definition at line 83 of file text.h.

Referenced by hoa_video::TextBox::_CalculateTextHeight(), hoa_video::TextBox::_DrawTextLines(), hoa_video::GameVideo::DrawText(), and hoa_video::GameVideo::RenderText().

TEXT_SHADOW_STYLE hoa_video::FontProperties::shadow_style

The style of the text shadow.

Definition at line 93 of file text.h.

Referenced by hoa_video::GameVideo::_GetTextShadowColor(), hoa_video::GameVideo::DrawText(), hoa_video::GameVideo::RenderText(), and hoa_video::GameVideo::SetFontShadowStyle().

int32 hoa_video::FontProperties::shadow_x

The x offset of the text shadow.

Definition at line 89 of file text.h.

Referenced by hoa_video::GameVideo::DrawText(), hoa_video::GameVideo::RenderText(), and hoa_video::GameVideo::SetFontShadowXOffset().

int32 hoa_video::FontProperties::shadow_y

The y offset of the text shadow.

Definition at line 91 of file text.h.

Referenced by hoa_video::GameVideo::DrawText(), hoa_video::GameVideo::RenderText(), and hoa_video::GameVideo::SetFontShadowYOffset().

TTF_Font* hoa_video::FontProperties::ttf_font

A pointer to SDL_TTF's font structure.

Definition at line 95 of file text.h.

Referenced by hoa_video::GameVideo::_CacheGlyphs(), hoa_video::GameVideo::_DrawTextHelper(), hoa_video::GameVideo::_GenTexLine(), hoa_video::GameVideo::DrawText(), and hoa_video::GameVideo::RenderText().


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 23:16:14 2007 for Hero of Allacrost by  doxygen 1.5.1