font Class Reference

#include <font.hpp>

Inheritance diagram for font:

Inheritance graph
[legend]
Collaboration diagram for font:

Collaboration graph
[legend]

List of all members.


Detailed Description

Encapsulates a font for use in OpenGL.

Definition at line 52 of file font.hpp.


Public Member Functions

float calc_height (const gsgl::string &) const
float calc_width (const gsgl::string &) const
void draw (const gsgl::string &) const
 Draws a string.
 font (const gsgl::string &face, int size, const color &fg)
const gsgl::stringget_face () const
const int get_size () const
 ~font ()

Static Public Member Functions

static gsgl::data_objectcreate_global_font_cache ()

Private Attributes

font_implimpl

Constructor & Destructor Documentation

font ( const gsgl::string face,
int  size,
const color fg 
)

~font (  ) 

Definition at line 382 of file font.cpp.

References assert, shared_object::detach(), and font::impl.


Member Function Documentation

float calc_height ( const gsgl::string str  )  const

Definition at line 405 of file font.cpp.

References assert, font_impl::calc_height(), and font::impl.

Referenced by simulation::draw().

float calc_width ( const gsgl::string str  )  const

Definition at line 412 of file font.cpp.

References assert, font_impl::calc_width(), and font::impl.

Referenced by textbox::draw(), and application::draw_budget().

gsgl::data_object * create_global_font_cache (  )  [static]

Definition at line 426 of file font.cpp.

Referenced by application::application().

void draw ( const gsgl::string str  )  const

Draws a string.

Definition at line 419 of file font.cpp.

References assert, font_impl::draw(), and font::impl.

Referenced by textbox::draw(), simulation::draw(), and display::draw_2d_text().

const string & get_face (  )  const

Definition at line 391 of file font.cpp.

References assert, font_impl::get_face(), and font::impl.

Referenced by tabbox::add_tab(), and treebox_node::treebox_node().

const int get_size (  )  const

Definition at line 398 of file font.cpp.

References assert, font_impl::get_size(), and font::impl.

Referenced by tabbox::add_tab(), treebox::draw(), and treebox_node::treebox_node().


Member Data Documentation

font_impl* impl [private]


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5