This file is indexed.

/usr/include/swami/libswamigui/SwamiguiSampleCanvas.h is in libswami-dev 2.0.0+svn389-3.

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
/*
 * SwamiguiSampleCanvas.h - Sample data canvas item
 * A canvas item for sample data
 *
 * Swami
 * Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License only.
 *
 * 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, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA or point your web browser to http://www.gnu.org.
 */
#ifndef __SWAMIGUI_SAMPLE_CANVAS_H__
#define __SWAMIGUI_SAMPLE_CANVAS_H__

#include <gtk/gtk.h>
#include <libgnomecanvas/libgnomecanvas.h>
#include <libinstpatch/libinstpatch.h>

typedef struct _SwamiguiSampleCanvas SwamiguiSampleCanvas;
typedef struct _SwamiguiSampleCanvasClass SwamiguiSampleCanvasClass;

#define SWAMIGUI_TYPE_SAMPLE_CANVAS   (swamigui_sample_canvas_get_type ())
#define SWAMIGUI_SAMPLE_CANVAS(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAMIGUI_TYPE_SAMPLE_CANVAS, \
			       SwamiguiSampleCanvas))
#define SWAMIGUI_SAMPLE_CANVAS_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), SWAMIGUI_TYPE_SAMPLE_CANVAS, \
   SwamiguiSampleCanvasClass))
#define SWAMIGUI_IS_SAMPLE_CANVAS(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAMIGUI_TYPE_SAMPLE_CANVAS))
#define SWAMIGUI_IS_SAMPLE_CANVAS_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAMIGUI_TYPE_SAMPLE_CANVAS))

/* Swami Sample Object */
struct _SwamiguiSampleCanvas
{
  GnomeCanvasItem parent_instance;

  /*< private >*/

  IpatchSampleData *sample; 	/* sample being displayed */
  guint sample_size;		/* cached size of sample */
  IpatchSampleHandle handle;	/* cached sample handle */
  gboolean right_chan;		/* use right channel of stereo audio? */
  guint max_frames;	/* max sample frames that can be converted at at time */

  gboolean loop_mode;		/* display loop mode? */
  guint loop_start, loop_end;	/* cached loop start and end in samples */

  GtkAdjustment *adj;		/* adjustment for view */
  gboolean update_adj;		/* adjustment values should be updated? */
  guint need_bbox_update : 1;	/* set if bbox need to be updated */

  guint start;			/* start sample (not used in LOOP mode) */
  double zoom;			/* zoom factor samples/pixel */
  double zoom_ampl;		/* amplitude zoom factor */
  int x, y;			/* x, y coordinates of sample item */
  int width, height;		/* width and height in pixels */

  GdkGC *peak_line_gc;		/* GC for drawing vertical average lines */
  GdkGC *line_gc;		/* GC for drawing lines */
  GdkGC *point_gc;		/* GC for drawing sample points */
  GdkGC *loop_start_gc;		/* GC for looop start sample points */
  GdkGC *loop_end_gc;		/* GC for loop end sample points */

  guint peak_line_color;	/* color of peak sample lines */
  guint line_color;		/* color of connecting sample lines */
  guint point_color;		/* color of sample points */
  guint loop_start_color;	/* color of sample points for start of loop */
  guint loop_end_color;		/* color of sample points for end of loop */
};

struct _SwamiguiSampleCanvasClass
{
  GnomeCanvasItemClass parent_class;
};

GType swamigui_sample_canvas_get_type (void);
void swamigui_sample_canvas_set_sample (SwamiguiSampleCanvas *canvas,
					IpatchSampleData *sample);
int swamigui_sample_canvas_xpos_to_sample (SwamiguiSampleCanvas *canvas,
					   int xpos, int *onsample);
int swamigui_sample_canvas_sample_to_xpos (SwamiguiSampleCanvas *canvas,
					   int index, int *inview);
#endif