#include <textboxhandler.h>

Public Member Functions | |
| TextBoxHandler () | |
| Default constructor. | |
| void | Init () |
| Initializer. | |
| TextBox * | NewTextBox (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. | |
Definition at line 29 of file textboxhandler.h.
| 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
| 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 |
Definition at line 49 of file textboxhandler.cpp.
Referenced by SubScreenHandler::SetMode().
1.5.8