TextBoxHandler Class Reference

Text boxes handler class. Uses the FreeType2 library. More...

#include <textboxhandler.h>

Collaboration diagram for TextBoxHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextBoxHandler ()
 Default constructor.
void Init ()
 Initializer.
TextBoxNewTextBox (Types::Screen::selector screen, int bgid, Types::Font font, int size, int x, int y, int width=0, int height=0)
void DestroyTextBox (TextBox *tb)
 Destroy a text box.
void PrintTextBox (TextBox *tb)
 Print a text box.
void PrintAll (Types::Screen::selector)
 Print all the text boxes.
 ~TextBoxHandler ()
 Destroyer.

Private Attributes

FT_Library library_
 Font library.
Types::Font font_
 Font loaded.
std::vector< FT_Face > faces_
 Faces loaded cache.
std::vector< TextBox * > text_boxes_
 Created text boxes pointers.


Detailed Description

Text boxes handler class. Uses the FreeType2 library.

Definition at line 29 of file textboxhandler.h.


Member Function Documentation

TextBox * TextBoxHandler::NewTextBox ( Types::Screen::selector  screen,
int  bgid,
Types::Font  font,
int  size,
int  x,
int  y,
int  width = 0,
int  height = 0 
)

Creates a new text box in the class

Parameters:
screen Screen where the text box is
bgid background id
font Font name
size Font size
x X position of the upper left corner
y Y position of the upper left corner
width Width of the box in pixels
height Maximum height of the box. By default is 0 which means infinite
Returns:
Created TextBox ID

Definition at line 49 of file textboxhandler.cpp.

Referenced by SubScreenHandler::SetMode().


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

Generated on Fri Oct 2 10:25:29 2009 for DSMemorizer by  doxygen 1.5.8