#include <font.hpp>


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::string & | get_face () const |
| const int | get_size () const |
| ~font () | |
Static Public Member Functions | |
| static gsgl::data_object * | create_global_font_cache () |
Private Attributes | |
| font_impl * | impl |
| font | ( | const gsgl::string & | face, | |
| int | size, | |||
| const color & | fg | |||
| ) |
Definition at line 360 of file font.cpp.
References shared_object::attach(), color::COMPONENT_ALPHA, color::COMPONENT_BLUE, color::COMPONENT_GREEN, color::COMPONENT_RED, cache::contains_index(), string::format(), singleton::global_instance(), font::impl, and string::w_string().
| ~font | ( | ) |
Definition at line 382 of file font.cpp.
References assert, shared_object::detach(), and font::impl.
| 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] |
| 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().
Definition at line 55 of file font.hpp.
Referenced by font::calc_height(), font::calc_width(), font::draw(), font::font(), font::get_face(), font::get_size(), and font::~font().
1.5.5