X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.h;fp=source%2Ftext.h;h=243c3a617f6cf2806a2272caf71cf4a44f45121e;hb=7c1b1b44dc3726d6cdb4681f9d44189eb4102a5a;hp=c49b167a844945d3a55cab385e9bbb5fa7c2f502;hpb=8a911be6fd3c2840befcef44ac7b24969563d34e;p=libs%2Fgltk.git diff --git a/source/text.h b/source/text.h index c49b167..243c3a6 100644 --- a/source/text.h +++ b/source/text.h @@ -49,6 +49,7 @@ public: const std::string &get() const { return text; } unsigned size() const { return text.size(); } unsigned get_n_lines() const { return lines.size(); } + unsigned get_visible_lines(const Part &, const Geometry &, unsigned *) const; unsigned get_line_length(unsigned) const; void offset_to_coords(unsigned, unsigned &, unsigned &) const; unsigned coords_to_offset(unsigned, unsigned) const;