This file is indexed.

/usr/include/t3/widget/t3widget/wrapinfo.h is in libt3widget-dev 0.6.2-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* Copyright (C) 2011-2012,2018 G.P. Halkes
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 3, as
   published by the Free Software Foundation.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef T3_WIDGET_WRAPINFO_H
#define T3_WIDGET_WRAPINFO_H

#include <vector>

#include <t3widget/textbuffer.h>
#include <t3widget/util.h>

namespace t3_widget {

typedef std::vector<int> wrap_points_t;
typedef std::vector<wrap_points_t *> wrap_data_t;

/** Class holding information about wrapping a text_buffer_t.

    This class is required by edit_window_t and text_buffer_t to present the
    user with a wrapped text. Except for in the function find_line, it uses the
    text_coordinate_t class in a special way: the @c pos field is used to store
    the index in the array of wrap points for the line indicated by the @c line
    field.
*/
class T3_WIDGET_LOCAL wrap_info_t {
 private:
  wrap_data_t wrap_data;
  text_buffer_t *text;
  int size, tabsize, wrap_width;
  signals::connection rewrap_connection;

  void delete_lines(int first, int last);
  void insert_lines(int first, int last);
  void rewrap_line(int line, int pos, bool force);
  void rewrap_all();
  void rewrap(rewrap_type_t type, int a, int b);

 public:
  wrap_info_t(int width, int tabsize = 8);
  ~wrap_info_t();
  int get_size() const;
  int get_text_size() const;

  void set_wrap_width(int width);
  void set_tabsize(int _tabsize);
  void set_text_buffer(text_buffer_t *_text);

  bool add_lines(text_coordinate_t &coord, int count) const;
  bool sub_lines(text_coordinate_t &coord, int count) const;
  int get_line_count(int line) const;
  text_coordinate_t get_end() const;
  int find_line(text_coordinate_t coord) const;
  int calculate_screen_pos() const;
  int calculate_screen_pos(const text_coordinate_t *where) const;
  int calculate_line_pos(int line, int pos, int subline) const;
  void paint_line(t3_window_t *win, text_coordinate_t line, text_line_t::paint_info_t *info) const;
};

};  // namespace
#endif