mapnik::string_info Class Reference

#include <text_path.hpp>

List of all members.

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_


Member Typedef Documentation

typedef boost::ptr_vector<character_info> mapnik::string_info::characters_t [protected]


Constructor & Destructor Documentation

mapnik::string_info::string_info ( UnicodeString const &  text  )  [inline]


Member Function Documentation

void mapnik::string_info::add_info ( int  c,
double  width,
double  height 
) [inline]

unsigned mapnik::string_info::num_characters (  )  const [inline]

character_info mapnik::string_info::at ( unsigned  i  )  const [inline]

character_info mapnik::string_info::operator[] ( unsigned  i  )  const [inline]

References at().

void mapnik::string_info::set_dimensions ( double  width,
double  height 
) [inline]

std::pair<double, double> mapnik::string_info::get_dimensions (  )  const [inline]

UnicodeString const& mapnik::string_info::get_string (  )  const [inline]


Member Data Documentation

Referenced by add_info(), at(), and num_characters().

UnicodeString const& mapnik::string_info::text_ [protected]

Referenced by get_string().

double mapnik::string_info::width_ [protected]

Referenced by get_dimensions(), and set_dimensions().

double mapnik::string_info::height_ [protected]

Referenced by get_dimensions(), and set_dimensions().


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

Generated for Mapnik by doxygen 1.5.6