This file is indexed.

/usr/include/phat/phatknob.h is in libphat-dev 0.4.1-5.

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
/* 
 *
 * Most of this code comes from gAlan 0.2.0, copyright (C) 1999
 * Tony Garnock-Jones, with modifications by Sean Bolton,
 * copyright (c) 2004.
 *
 * 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; either version 2 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 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.
 */

#ifndef __PHAT_KNOB_H__
#define __PHAT_KNOB_H__

#include <gdk/gdk.h>
#include <gtk/gtkadjustment.h>
#include <gtk/gtkwidget.h>

G_BEGIN_DECLS

#define PHAT_KNOB(obj)          GTK_CHECK_CAST(obj, phat_knob_get_type(), PhatKnob)
#define PHAT_KNOB_CLASS(klass)  GTK_CHECK_CLASS_CAST(klass, phat_knob_get_type(), PhatKnobClass)
#define PHAT_IS_KNOB(obj)       GTK_CHECK_TYPE(obj, phat_knob_get_type())
#define PHAT_TYPE_KNOB          (phat_knob_get_type ( ))


typedef struct _PhatKnob        PhatKnob;
typedef struct _PhatKnobClass   PhatKnobClass;

struct _PhatKnob {
    GtkWidget widget;
    /* The adjustment object that stores the data for this knob */
    GtkAdjustment *adjustment;
    GtkAdjustment* adjustment_prv;


    /* update policy (GTK_UPDATE_[CONTINUOUS/DELAYED/DISCONTINUOUS]) */
    guint policy : 2;
    gboolean is_log;

    /* State of widget (to do with user interaction) */
    guint8 state;
    gint saved_x, saved_y;

    /* ID of update timer, or 0 if none */
    guint32 timer;

    /* Pixmap for knob */
    GdkPixbuf *pixbuf;
    GdkBitmap *mask;
    GdkGC *mask_gc;
    GdkGC *red_gc;

    /* Old values from adjustment stored so we know when something changes */
    gfloat old_value;
    gfloat old_lower;
    gfloat old_upper;

};

struct _PhatKnobClass
{
    GtkWidgetClass parent_class;

    void (*value_changed) (PhatKnob* knob);
};

GType phat_knob_get_type ( );

GtkWidget* phat_knob_new (GtkAdjustment* adjustment);

GtkWidget* phat_knob_new_with_range (double value,
                                     double lower,
                                     double upper,
                                     double step);
GtkAdjustment *phat_knob_get_adjustment(PhatKnob *knob);
double phat_knob_get_value (PhatKnob* knob);
void phat_knob_set_value (PhatKnob* knob, double value);
void phat_knob_set_range (PhatKnob* knob, double lower, double upper);
void phat_knob_set_update_policy(PhatKnob *knob, GtkUpdateType  policy);
void phat_knob_set_adjustment(PhatKnob *knob, GtkAdjustment *adjustment);
void phat_knob_set_log (PhatKnob* knob, gboolean is_log);
gboolean phat_knob_is_log (PhatKnob* knob);

G_END_DECLS

#endif