#include <text.h>
Inheritance diagram for text:


Public Member Functions | |
| text (char *to_print="", const c_point &origin=c_point(0, 0), canvas *draw_on=NIL, fontID font_to_use=0) | |
| virtual | ~text () |
| virtual c_rectangle | dimensions () |
| char * | contents () |
| void | set_contents (char *to_print="") |
| virtual void | draw () |
| virtual void | erase () |
| fontID | font () const |
| void | set_font (fontID text_font) |
| int | rotation () const |
| void | set_rotation (int rotation) |
| void | goto_xy (const c_point &xy) |
| void | goto_xy (float x, float y) |
| fontID | read_font (char *font_filename) |
Public Attributes | |
| colorable | _color |
Definition at line 34 of file text.h.
| c_rectangle text::dimensions | ( | ) | [virtual] |
Definition at line 63 of file text.cpp.
References _color, c_point, c_rectangle, and drawable::origin().
| void text::draw | ( | ) | [virtual] |
Implements drawable.
Definition at line 42 of file text.cpp.
References _color, c_point, dimensionable::height(), and drawable::origin().
| void text::erase | ( | ) | [virtual] |
Implements drawable.
Definition at line 52 of file text.cpp.
References c_point, dimensionable::height(), and drawable::origin().
| void text::goto_xy | ( | const c_point & | xy | ) |
Definition at line 79 of file text.cpp.
References c_point, dimensionable::height(), drawable::set_origin(), and dimensionable::width().
Referenced by goto_xy().
| void text::goto_xy | ( | float | x, | |
| float | y | |||
| ) |
1.5.1