This file is indexed.

/usr/include/dia-newcanvas-1.0/dia-newcanvas/dia-canvas-item.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
/* dia-canvas-item.h
 * Copyright (C) 2000  James Henstridge
 *
 * 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_CANVAS_ITEM_H__
#define __DIA_CANVAS_ITEM_H__

#include <gtk/gtk.h>
#include "dia-canvas.h"

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

#define DIA_TYPE_CANVAS_ITEM            (dia_canvas_item_get_type ())
#define DIA_CANVAS_ITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_ITEM, DiaCanvasItem))
#define DIA_CANVAS_ITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  DIA_TYPE_CANVAS_ITEM, DiaCanvasItemClass))
#define DIA_IS_CANVAS_ITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_ITEM))
#define DIA_IS_CANVAS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),    DIA_TYPE_CANVAS_ITEM))
#define DIA_CANVAS_ITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),   DIA_TYPE_CANVAS_ITEM, DiaCanvasItemClass))

/* forward declaration of DiaCanvasItem in dia-canvas.h */
/* typedef struct _DiaCanvasItem       DiaCanvasItem; */
typedef struct _DiaCanvasItemClass  DiaCanvasItemClass;

struct _DiaCanvasItem
{
  GObject object;

  DiaCanvas *canvas;
  DiaCanvasGroup *parent;

  /* Bounds in which the item fits */
  DiaRectangle bounds;

  guint floating : 1;
  guint visible : 1;
  guint need_update : 1;

  /* Does it moves with the group or alone ? */
  guint independant_move : 1;

  /* is it the source of the attract ? */
  guint attract_source : 1;

  /* is it the source of the connect ? */
  guint connect_source : 1;

  /* Does it issue the connection move ? */
  guint connection_moved : 1;

  /* is the item in the selection ? */
  guint selected : 1;
};

struct _DiaCanvasItemClass
{
  GObjectClass parent_class;

  void     (*render)	 (DiaCanvasItem *item,
			  DiaRenderer *renderer,
			  DiaRectangle *rect);

  /* Computes the distance */
  gdouble  (* distance)  (DiaCanvasItem *item,
			  gdouble x,
			  gdouble y);

  void     (* update)    (DiaCanvasItem *item);

  gboolean (* event)     (DiaCanvasItem *item,
			  GdkEvent *event,
			  DiaCanvasView *view);

  /* Signal for simple movement */
  void     (* move)      (DiaCanvasItem *item,
			  gdouble dx,
			  gdouble dy);

  /* (dx,dy) to add to move to the nearest attraction point */
  gdouble  (* attract)   (DiaCanvasItem *item,
			  gdouble *x,
		 	  gdouble *y);

  /* Try a move with snap constraints */
  gdouble  (* snapmove)  (DiaCanvasItem *item,
			  gdouble *dx,
			  gdouble *dy);

  /* Try to see if connection can be established */
  void     (* connect) (DiaCanvasItem *item,
			DiaCanvasConnection *connection);

  /* Ask the item to connect other items */
  void     (* connection) (DiaCanvasItem *item);

  /* Received when a connected object has moved */
  void     (* connection_moved) (DiaCanvasItem *item,
				 DiaCanvasConnection *connection,
				 gdouble dx, gdouble dy);

  void     (* select)           (DiaCanvasItem *item,
				 gboolean selected);

};


GType dia_canvas_item_get_type (void);
void  dia_canvas_item_request_update (DiaCanvasItem *item);
void  dia_canvas_item_sink (DiaCanvasItem *item);

void  dia_canvas_item_show (DiaCanvasItem *item);
void  dia_canvas_item_hide (DiaCanvasItem *item);

void    dia_canvas_item_move (DiaCanvasItem *item,
			      gdouble dx,
			      gdouble dy);

gdouble dia_canvas_item_snapmove (DiaCanvasItem *item,
				  gdouble *dx,
				  gdouble *dy);

void    dia_canvas_item_make_connection (DiaCanvasItem *item);

void  dia_canvas_item_select   (DiaCanvasItem *item);
void  dia_canvas_item_unselect (DiaCanvasItem *item);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __DIA_CANVAS_ITEM_H__ */