+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#ifndef MSP_GLTK_TEXT_H_
#define MSP_GLTK_TEXT_H_
void insert(unsigned, const std::string &);
const std::string &get() const { return text; }
unsigned size() const { return text.size(); }
+ unsigned get_n_lines() const { return lines.size(); }
+ unsigned get_line_length(unsigned) const;
+ void offset_to_coords(unsigned, unsigned &, unsigned &) const;
+ unsigned coords_to_offset(unsigned, unsigned) const;
+ Geometry coords_to_geometry(unsigned, unsigned) const;
void render(const Part &, const Geometry &) const;