This file is indexed.

/usr/include/drawtk.h is in libdrawtk-dev 2.0-2.1.

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
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
/*
    Copyright (C) 2009-2012  EPFL (Ecole Polytechnique Fédérale de Lausanne)
    Laboratory CNBI (Chair in Non-Invasive Brain-Machine Interface)
    Nicolas Bourdaud <nicolas.bourdaud@epfl.ch>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    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 Lesser General Public License for more details.

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

#ifdef __cplusplus
extern "C" {
#endif 

/* Window functions */
typedef struct dtk_window* dtk_hwnd;
dtk_hwnd dtk_create_window(unsigned int width, unsigned int height, unsigned int x, unsigned int y, unsigned int bpp, const char* caption);
void dtk_make_current_window(dtk_hwnd wnd);
void dtk_clear_screen(dtk_hwnd wnd);
void dtk_update_screen(dtk_hwnd wnd);
void dtk_window_getsize(dtk_hwnd wnd, unsigned int* w, unsigned int* h);
void dtk_close(dtk_hwnd wnd);
void dtk_bgcolor(float* bgcolor);

/* Image functions */
typedef struct dtk_texture* dtk_htex;
dtk_htex dtk_load_image(const char* filename, unsigned int mipmap_maxlevel);
void dtk_destroy_texture(dtk_htex tex);
void dtk_texture_getsize(dtk_htex, unsigned int* w, unsigned int* h);

/* Font functions */
typedef struct dtk_font* dtk_hfont;
dtk_hfont dtk_load_font(const char* fontname);
void dtk_destroy_font(dtk_hfont font);


/* Handle to shape structure */
typedef struct dtk_shape* dtk_hshape;

#define DTK_BOTTOM	0x00
#define DTK_VMID	0x01
#define DTK_TOP		0x02
#define DTK_LEFT	0x00
#define DTK_HMID	0x10
#define DTK_RIGHT	0x20
#define DTK_TRIANGLES		0
#define DTK_TRIANGLE_STRIP	1
#define DTK_TRIANGLE_FAN	2
#define DTK_LINES		3
#define DTK_LINE_STRIP		4

#define DTK_IGNR 	0x01
#define DTK_IGNG 	0x02
#define DTK_IGNB 	0x04
#define DTK_IGNA 	0x08
#define DTK_IGNRGB 	DTK_IGNR | DTK_IGNG | DTK_IGNB

/* Shape creation functions */
dtk_hshape dtk_create_rectangle_2p(dtk_hshape shp, float p1_x, float p1_y, float p2_x, float p2_y, int isfull, const float* color);
dtk_hshape dtk_create_rectangle_hw(dtk_hshape shp, float cx, float cy, float height, float width, int isfull, const float* color);
dtk_hshape dtk_create_triangle(dtk_hshape shp, float x1, float y1, float x2, float y2, float x3, float y3, int isfull, const float* color);
dtk_hshape dtk_create_circle(dtk_hshape shp, float cx, float cy, float r, int isfull, const float* color, unsigned int numpoints);
dtk_hshape dtk_create_circle_str(dtk_hshape shp, float cx, float cy, float r, float thick, const float* color, unsigned int numpoints);
dtk_hshape dtk_create_shape(dtk_hshape shp, unsigned int ind_num, const float* vertex_array, int isFull, const float* color);
dtk_hshape dtk_create_line(dtk_hshape shp, float x1, float y1, float x2, float y2, const float *color);
dtk_hshape dtk_create_arrow(dtk_hshape shp, float cx, float cy, float width, float height, int isfull, const float* color);
dtk_hshape dtk_create_cross(dtk_hshape shp, float cx, float cy, float width, const float* color);
dtk_hshape dtk_create_image(dtk_hshape shp, float x, float y, float width, float height, const float* color, dtk_htex image);
dtk_hshape dtk_create_string(struct dtk_shape* shp, const char* text,
			     float size, float x, float y, 
			     unsigned int alignment,
			     const float* color, dtk_hfont font);
dtk_hshape dtk_create_composite_shape(dtk_hshape shp, unsigned int num_shp, 
                                const dtk_hshape* array, int free_children);
dtk_hshape dtk_create_complex_shape(dtk_hshape shp,
                         unsigned int nvert, const float* vertpos,
		         const float* vertcolor, const float* texcoords,
                         unsigned int nind, const unsigned int *ind,
                         unsigned int type, dtk_htex tex);

/* Shape displacement functions */
void dtk_move_shape(dtk_hshape shp, float x, float y);
void dtk_relmove_shape(dtk_hshape shp, float dx, float dy);
void dtk_rotate_shape(dtk_hshape shp, float deg);
void dtk_relrotate_shape(dtk_hshape shp, float ddeg);
void dtk_setcolor_shape(dtk_hshape shp, const float* color, unsigned int mask);

/* Draw a shape */
void dtk_draw_shape(const dtk_hshape shp);

/* Destroy shape */
void dtk_destroy_shape(dtk_hshape shp);

#ifdef __cplusplus
}
#endif

#endif