#include <text_path.hpp>
Public Member Functions | |
string_info (UnicodeString const &text) | |
void | add_info (int c, double width, double height) |
unsigned | num_characters () const |
character_info | at (unsigned i) const |
character_info | operator[] (unsigned i) const |
void | set_dimensions (double width, double height) |
std::pair< double, double > | get_dimensions () const |
UnicodeString const & | get_string () const |
Protected Types | |
typedef boost::ptr_vector < character_info > | characters_t |
Protected Attributes | |
characters_t | characters_ |
UnicodeString const & | text_ |
double | width_ |
double | height_ |
typedef boost::ptr_vector<character_info> mapnik::string_info::characters_t [protected] |
mapnik::string_info::string_info | ( | UnicodeString const & | text | ) | [inline] |
void mapnik::string_info::add_info | ( | int | c, | |
double | width, | |||
double | height | |||
) | [inline] |
character_info mapnik::string_info::at | ( | unsigned | i | ) | const [inline] |
References characters_.
Referenced by mapnik::placement_finder< DetectorT >::find_point_placement(), and operator[]().
std::pair<double, double> mapnik::string_info::get_dimensions | ( | ) | const [inline] |
References height_, and width_.
Referenced by mapnik::placement_finder< DetectorT >::find_line_placements(), and mapnik::placement_finder< DetectorT >::find_point_placement().
UnicodeString const& mapnik::string_info::get_string | ( | ) | const [inline] |
unsigned mapnik::string_info::num_characters | ( | ) | const [inline] |
References characters_.
Referenced by mapnik::placement_finder< DetectorT >::find_point_placement().
character_info mapnik::string_info::operator[] | ( | unsigned | i | ) | const [inline] |
References at().
void mapnik::string_info::set_dimensions | ( | double | width, | |
double | height | |||
) | [inline] |
References height_, and width_.
Referenced by mapnik::placement_finder< DetectorT >::find_point_placement(), and mapnik::font_face_set::get_string_info().
characters_t mapnik::string_info::characters_ [protected] |
Referenced by add_info(), at(), and num_characters().
double mapnik::string_info::height_ [protected] |
Referenced by get_dimensions(), and set_dimensions().
UnicodeString const& mapnik::string_info::text_ [protected] |
Referenced by get_string().
double mapnik::string_info::width_ [protected] |
Referenced by get_dimensions(), and set_dimensions().