This file is indexed.

/usr/include/dia-newcanvas-1.0/dia-newcanvas/dia-renderer.h is in libdianewcanvas2-dev 0.6.10-5.4.

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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* dia-renderer.h
 * Copyright (C) 2000  James Henstridge, Alexander Larsson
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */
#ifndef __DIA_RENDERER_H__
#define __DIA_RENDERER_H__

#include <gtk/gtk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "dia-geometry.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define DIA_TYPE_RENDERER	       (dia_renderer_get_type ())
#define DIA_RENDERER(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_RENDERER, DiaRenderer))
#define DIA_RENDERER_CLASS(vtable)     (G_TYPE_CHECK_CLASS_CAST ((vtable), DIA_TYPE_RENDERER, DiaRendererClass)
#define DIA_IS_RENDERER(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_RENDERER))
#define DIA_IS_RENDERER_CLASS(vtable)  (G_TYPE_CHECK_CLASS_TYPE ((vtable), DIA_TYPE_RENDERER))
#define DIA_RENDERER_GET_CLASS(inst)   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), DIA_TYPE_RENDERER, DiaRendererClass))

typedef struct _DiaRenderer       DiaRenderer;
typedef struct _DiaRendererClass  DiaRendererClass;

typedef enum
{
  DIA_BEZ_MOVE_TO,
  DIA_BEZ_LINE_TO,
  DIA_BEZ_CURVE_TO
} DiaBezierType;

typedef struct _DiaBezierPath     DiaBezierPath;
struct _DiaBezierPath {
  DiaBezierType type;
  DiaPoint p1, p2, p3;
};

struct _DiaRendererClass
{
  GTypeInterface base_iface;

  /* State setting functions */
  void (*set_fill_rule)  (DiaRenderer *renderer, GdkFillRule rule);
  void (*set_join_style) (DiaRenderer *renderer, GdkJoinStyle style);
  void (*set_cap_style)  (DiaRenderer *renderer, GdkCapStyle style);
  void (*set_line_width) (DiaRenderer *renderer, gdouble width);
  void (*set_line_style) (DiaRenderer *renderer, GdkLineStyle style);
  void (*set_dash_style) (DiaRenderer *renderer, gdouble *dash_len, gint nlen);
  void (*set_color)      (DiaRenderer *renderer, GdkColor *color);
  /* the font size in font_desc is ignored, as we want something scalable */
  void (*set_font)       (DiaRenderer *renderer, const gchar *font_desc,
			  gdouble size);

  /* Primitives */
  void (* draw_point)     (DiaRenderer *renderer,
			   DiaPoint *point);
  void (* draw_line)      (DiaRenderer *renderer,
			   DiaPoint *start, DiaPoint *end);
  void (* draw_rectangle) (DiaRenderer *renderer, gboolean filled,
			   DiaPoint *ul_corner, DiaPoint *lr_corner);

  void (* draw_polyline)  (DiaRenderer *renderer,
			   DiaPoint *points, gint npoints);
  void (* draw_polygon)   (DiaRenderer *renderer, gboolean filled,
			   GList /*DiaPoint*/ *points);

  void (* draw_ellipse)   (DiaRenderer *renderer, gboolean filled,
			   DiaPoint *centre, gdouble width, gdouble height);
			   
  void (* draw_arc)       (DiaRenderer *renderer, gboolean filled,
			   DiaPoint *centre,
			   gdouble width, gdouble height,
			   gdouble angle1, gdouble angle2);

  void (* draw_bezier)    (DiaRenderer *renderer, gboolean filled,
			   DiaBezierPath *points, gint npoints);

  void (* draw_pixbuf)    (DiaRenderer *renderer,
			   DiaPoint *pos, gdouble width, gdouble height,
			   gdouble angle, GdkPixbuf *src);

  void (* draw_text)      (DiaRenderer *renderer,
			   DiaPoint *point, const gchar *text);
  void (* get_text_size)  (DiaRenderer *renderer,
			   DiaPoint *point, const gchar *text);

};

GType   dia_renderer_get_type (void);

/* State setting functions */
void dia_renderer_set_fill_rule  (DiaRenderer *renderer, GdkFillRule rule);
void dia_renderer_set_join_style (DiaRenderer *renderer, GdkJoinStyle style);
void dia_renderer_set_cap_style  (DiaRenderer *renderer, GdkCapStyle style);
void dia_renderer_set_line_width (DiaRenderer *renderer, gdouble width);
void dia_renderer_set_line_style (DiaRenderer *renderer, GdkLineStyle style);
void dia_renderer_set_dash_style (DiaRenderer *renderer, gdouble *dash_len,
				  gint nlen);
void dia_renderer_set_color     (DiaRenderer *renderer, GdkColor *color);
/* the font size in font_desc is ignored, as we want something scalable */
void dia_renderer_set_font       (DiaRenderer *renderer,
				  const gchar *font_desc, gdouble size);

/* Primitives */
void dia_renderer_draw_point     (DiaRenderer *renderer,
				  DiaPoint *point);
void dia_renderer_draw_line      (DiaRenderer *renderer,
				  DiaPoint *start, DiaPoint *end);
void dia_renderer_draw_rectangle (DiaRenderer *renderer, gboolean filled,
				  DiaPoint *ul_corner, DiaPoint *lr_corner);

void dia_renderer_draw_polyline  (DiaRenderer *renderer,
				  DiaPoint *points, gint npoints);
void dia_renderer_draw_polygon   (DiaRenderer *renderer, gboolean filled,
				  GList /*DiaPoint*/ *points);

void dia_renderer_draw_ellipse   (DiaRenderer *renderer, gboolean filled,
				  DiaPoint *centre, gdouble width,
				  gdouble height);
			   
void dia_renderer_draw_arc       (DiaRenderer *renderer, gboolean filled,
				  DiaPoint *centre,
				  gdouble width, gdouble height,
				  gdouble angle1, gdouble angle2);

void dia_renderer_draw_bezier    (DiaRenderer *renderer, gboolean filled,
				  DiaBezierPath *points, gint npoints);

void dia_renderer_draw_pixbuf    (DiaRenderer *renderer,
				  DiaPoint *pos, gdouble width, gdouble height,
				  gdouble angle, GdkPixbuf *src);

void dia_renderer_draw_text      (DiaRenderer *renderer,
				  DiaPoint *point, const gchar *text);

/* Text size */
void dia_renderer_get_text_size  (DiaRenderer *renderer,
				  DiaPoint *point, const gchar *text);

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* __DIA_RENDERER_H__ */