text Class Reference

#include <text.h>

Inheritance diagram for text:

Inheritance graph
[legend]
Collaboration diagram for text:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 34 of file text.h.


Constructor & Destructor Documentation

text::text ( char *  to_print = "",
const c_point &  origin = c_point(0, 0),
canvas draw_on = NIL,
fontID  font_to_use = 0 
)

Definition at line 22 of file text.cpp.

text::~text (  )  [virtual]

Definition at line 26 of file text.cpp.


Member Function Documentation

c_rectangle text::dimensions (  )  [virtual]

Definition at line 63 of file text.cpp.

References _color, c_point, c_rectangle, and drawable::origin().

char * text::contents (  ) 

Definition at line 40 of file text.cpp.

void text::set_contents ( char *  to_print = ""  ) 

Definition at line 28 of file text.cpp.

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().

fontID text::font (  )  const

Definition at line 30 of file text.cpp.

void text::set_font ( fontID  text_font  ) 

Definition at line 32 of file text.cpp.

int text::rotation (  )  const

Definition at line 34 of file text.cpp.

void text::set_rotation ( int  rotation  ) 

Definition at line 36 of file text.cpp.

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 
)

Definition at line 38 of file text.cpp.

References c_point, and goto_xy().

fontID text::read_font ( char *  font_filename  ) 

Definition at line 71 of file text.cpp.


Member Data Documentation

colorable text::_color

Definition at line 80 of file text.h.

Referenced by dimensions(), and draw().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:31:03 2008 for HOOPLE Libraries by  doxygen 1.5.1