- 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(const Part &, const Geometry &, unsigned, unsigned, unsigned) const;
+ std::size_t size() const { return text.size(); }
+ std::size_t get_n_lines() const { return lines.size(); }
+ std::size_t get_visible_lines(const Part &, const Geometry &, unsigned *) const;
+ std::size_t get_line_length(std::size_t) const;
+ std::size_t move_offset(std::size_t, std::ptrdiff_t) const;
+ void offset_to_coords(std::size_t, std::size_t &, std::size_t &) const;
+ std::size_t coords_to_offset(std::size_t, std::size_t) const;
+ Geometry coords_to_geometry(const Part &, const Geometry &, std::size_t, std::size_t, std::size_t) const;