OSDL::Video::TwoDimensional::Text Namespace Reference


Classes

class  FixedFont
 Models fixed fonts, a category which gathers all fonts whose rendering demands little resources, but cannot be scaled, as opposed to Truetype fonts. More...
class  Font
 Models an abstract font, including its rendering style (bold, italic, etc. More...
class  TrueTypeFont
 Truetype font. More...

Typedefs

typedef Length PointSize
 Point size, in dots per inch.
typedef Ceylan::Uint16 FontIndex
 Describes a font index, when multiple fonts are stored in the same location.
typedef Ceylan::Uint16 Height
 Describes a font pixel unsigned height.
typedef Ceylan::Sint16 SignedHeight
 Describes a font pixel signed height.
typedef Ceylan::Uint16 Width
 Describes a font pixel unsigned width.
typedef Ceylan::Sint16 SignedWidth
 Describes a font pixel signed width.
typedef int RenderingStyle
 Describes the rendering style of a font.
typedef Ceylan::Uint16 TextIndex
 Index designating a position in a text, starting at zero with the first character.
typedef Ceylan::Uint16 LineNumber
 Describes a line number is a multiline text.

Enumerations

enum  HorizontalAlignment { Left, WidthCentered, Right }
 Defines the various possible horizontal alignments. More...
enum  VerticalAlignment { Top, HeightCentered, Bottom }
 Defines the various possible vertical alignments. More...

Functions

OSDL_DLL bool printBasic (const std::string &text, Surface &targetSurface, Coordinate x, Coordinate y, Pixels::ColorElement red, Pixels::ColorElement blue, Pixels::ColorElement green, Pixels::ColorElement alpha=Pixels::AlphaOpaque) throw ()
 Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.
OSDL_DLL bool printBasic (const std::string &text, Surface &targetSurface, Coordinate x, Coordinate y, Pixels::ColorDefinition colorDef) throw ()
 Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.

Variables

OSDL_DLL const Length BasicFontCharacterWidth
 The character width of fixed basic font.
OSDL_DLL const Length BasicFontCharacterHeight
 The character height of fixed basic font.


Typedef Documentation

typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::FontIndex

Describes a font index, when multiple fonts are stored in the same location.

Definition at line 62 of file OSDLFont.h.

typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::Height

Describes a font pixel unsigned height.

Definition at line 67 of file OSDLFont.h.

typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::LineNumber

Describes a line number is a multiline text.

Note:
The first line has for number '1' (not '0').

Definition at line 98 of file OSDLFont.h.

typedef Length OSDL::Video::TwoDimensional::Text::PointSize

Point size, in dots per inch.

Definition at line 54 of file OSDLFont.h.

typedef int OSDL::Video::TwoDimensional::Text::RenderingStyle

Describes the rendering style of a font.

Definition at line 81 of file OSDLFont.h.

typedef Ceylan::Sint16 OSDL::Video::TwoDimensional::Text::SignedHeight

Describes a font pixel signed height.

Definition at line 70 of file OSDLFont.h.

typedef Ceylan::Sint16 OSDL::Video::TwoDimensional::Text::SignedWidth

Describes a font pixel signed width.

Definition at line 77 of file OSDLFont.h.

typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::TextIndex

Index designating a position in a text, starting at zero with the first character.

Definition at line 89 of file OSDLFont.h.

typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::Width

Describes a font pixel unsigned width.

Definition at line 74 of file OSDLFont.h.


Enumeration Type Documentation

enum OSDL::Video::TwoDimensional::Text::HorizontalAlignment

Defines the various possible horizontal alignments.

Enumerator:
Left 
WidthCentered 
Right 

Definition at line 103 of file OSDLFont.h.

enum OSDL::Video::TwoDimensional::Text::VerticalAlignment

Defines the various possible vertical alignments.

Enumerator:
Top 
HeightCentered 
Bottom 

Definition at line 106 of file OSDLFont.h.


Function Documentation

bool OSDL::Video::TwoDimensional::Text::printBasic ( const std::string &  text,
Surface targetSurface,
Coordinate  x,
Coordinate  y,
Pixels::ColorDefinition  colorDef 
) throw ()

Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.

Basic 8x8 bitmap font will be used.

Not all accentuated characters are supported by the built-in font. For example, 'à', 'â', etc. are replaced by greek characters.

Note:
The printBasic methods are very lightweight, since they rely onto built-in basic fonts : no need to instanciate a FixedFont class to use them.

Definition at line 57 of file OSDLFixedFont.cc.

References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor().

Referenced by OSDL::Video::Surface::printText().

bool OSDL::Video::TwoDimensional::Text::printBasic ( const std::string &  text,
Surface targetSurface,
Coordinate  x,
Coordinate  y,
Pixels::ColorElement  red,
Pixels::ColorElement  blue,
Pixels::ColorElement  green,
Pixels::ColorElement  alpha = Pixels::AlphaOpaque 
) throw ()

Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.

Basic 8x8 bitmap font will be used.

Not all accentuated characters are supported by the built-in font. For example, 'à', 'â', etc. are replaced by greek characters.

Note:
The printBasic methods are very lightweight, since they rely onto built-in basic fonts : no need to instanciate a FixedFont class to use them.

Definition at line 73 of file OSDLFixedFont.cc.


Variable Documentation

const OSDL::Video::Length OSDL::Video::TwoDimensional::Text::BasicFontCharacterHeight

The character height of fixed basic font.

Definition at line 40 of file OSDLFixedFont.cc.

Referenced by OSDL::Video::TwoDimensional::Widget::drawDecorations().

const OSDL::Video::Length OSDL::Video::TwoDimensional::Text::BasicFontCharacterWidth

The character width of fixed basic font.

Definition at line 37 of file OSDLFixedFont.cc.

Referenced by OSDL::Video::TwoDimensional::Widget::drawDecorations().


Generated on Fri Mar 30 14:47:36 2007 for OSDL by  doxygen 1.5.1