This file is indexed.

/usr/include/goocanvas-2.0/goocanvasstyle.h is in libgoocanvas-2.0-dev 2.0.2-2.

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
/*
 * GooCanvas. Copyright (C) 2005-6 Damon Chaplin.
 * Released under the GNU LGPL license. See COPYING for details.
 *
 * goocanvasstyle.h - cascading styles.
 */
#ifndef __GOO_CANVAS_STYLE_H__
#define __GOO_CANVAS_STYLE_H__

#include <gtk/gtk.h>

G_BEGIN_DECLS


/* GQuarks for the basic properties. */
extern GQuark goo_canvas_style_stroke_pattern_id;
extern GQuark goo_canvas_style_fill_pattern_id;
extern GQuark goo_canvas_style_fill_rule_id;
extern GQuark goo_canvas_style_operator_id;
extern GQuark goo_canvas_style_antialias_id;
extern GQuark goo_canvas_style_line_width_id;
extern GQuark goo_canvas_style_line_cap_id;
extern GQuark goo_canvas_style_line_join_id;
extern GQuark goo_canvas_style_line_join_miter_limit_id;
extern GQuark goo_canvas_style_line_dash_id;
extern GQuark goo_canvas_style_font_desc_id;
extern GQuark goo_canvas_style_hint_metrics_id;


/**
 * GooCanvasStyleProperty:
 * @id: the unique property identifier.
 * @value: the value of the property.
 *
 * #GooCanvasStyleProperty represents a property setting.
 */
typedef struct _GooCanvasStyleProperty GooCanvasStyleProperty;
struct _GooCanvasStyleProperty
{
  GQuark id;
  GValue value;
};


#define GOO_TYPE_CANVAS_STYLE            (goo_canvas_style_get_type ())
#define GOO_CANVAS_STYLE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOO_TYPE_CANVAS_STYLE, GooCanvasStyle))
#define GOO_CANVAS_STYLE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GOO_TYPE_CANVAS_STYLE, GooCanvasStyleClass))
#define GOO_IS_CANVAS_STYLE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOO_TYPE_CANVAS_STYLE))
#define GOO_IS_CANVAS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GOO_TYPE_CANVAS_STYLE))
#define GOO_CANVAS_STYLE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GOO_TYPE_CANVAS_STYLE, GooCanvasStyleClass))


typedef struct _GooCanvasStyle       GooCanvasStyle;
typedef struct _GooCanvasStyleClass  GooCanvasStyleClass;

/**
 * GooCanvasStyle:
 * @parent: the parent style.
 * @properties: an array of #GooCanvasStyleProperty property settings.
 *
 * #GooCanvasStyle holds the style properties of a canvas item, as well as a
 * pointer to the parent style.
 */
struct _GooCanvasStyle
{
  /* <private> */
  GObject parent_object;

  /* <public> */
  GooCanvasStyle *parent;
  GArray *properties;
};

struct _GooCanvasStyleClass
{
  GObjectClass parent_class;

  /*< private >*/

  /* Padding for future expansion */
  void (*_goo_canvas_reserved1) (void);
  void (*_goo_canvas_reserved2) (void);
  void (*_goo_canvas_reserved3) (void);
  void (*_goo_canvas_reserved4) (void);
};


GType           goo_canvas_style_get_type           (void) G_GNUC_CONST;
GooCanvasStyle* goo_canvas_style_new                (void);
GooCanvasStyle* goo_canvas_style_copy               (GooCanvasStyle *style);

GooCanvasStyle* goo_canvas_style_get_parent         (GooCanvasStyle *style);
void            goo_canvas_style_set_parent         (GooCanvasStyle *style,
						     GooCanvasStyle *parent);

GValue*         goo_canvas_style_get_property       (GooCanvasStyle *style,
						     GQuark          property_id);
void            goo_canvas_style_set_property	    (GooCanvasStyle *style,
						     GQuark          property_id,
						     const GValue   *value);

/* Convenience functions to set the standard cairo stroke and fill options. */
gboolean        goo_canvas_style_set_stroke_options (GooCanvasStyle *style,
						     cairo_t        *cr);
gboolean        goo_canvas_style_set_fill_options   (GooCanvasStyle *style,
						     cairo_t        *cr);

G_END_DECLS

#endif /* __GOO_CANVAS_STYLE_H__ */