/usr/include/pigment-0.3/pgm/pgmcanvas.h is in libpigment0.3-dev 0.3.17-1ubuntu1.
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 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | /* -*- Mode: C; c-basic-offset: 2; indent-tabs-mode: nil -*-
*
* Pigment media rendering library
*
* Copyright © 2006, 2007, 2008 Fluendo Embedded S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser 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.
*
* Author(s): Loïc Molinari <loic@fluendo.com>
* Julien Moutte <julien@fluendo.com>
*/
#ifndef __PGM_CANVAS_H__
#define __PGM_CANVAS_H__
#include <gst/gst.h>
#include "pgmcommon.h"
#include "pgmdrawable.h"
G_BEGIN_DECLS
#define PGM_TYPE_CANVAS (pgm_canvas_get_type ())
#define PGM_CANVAS(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), PGM_TYPE_CANVAS, PgmCanvas))
#define PGM_CANVAS_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), PGM_TYPE_CANVAS, PgmCanvasClass))
#define PGM_IS_CANVAS(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), PGM_TYPE_CANVAS))
#define PGM_IS_CANVAS_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), PGM_TYPE_CANVAS))
#define PGM_CANVAS_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS((obj), PGM_TYPE_CANVAS, PgmCanvasClass))
typedef struct _PgmCanvas PgmCanvas;
typedef struct _PgmCanvasClass PgmCanvasClass;
/**
* PgmCanvas:
* @far_layer: the list of #PgmDrawable in the #PGM_DRAWABLE_FAR layer.
* @middle_layer: the list of #PgmDrawable in the #PGM_DRAWABLE_MIDDLE layer.
* @near_layer: the list of #PgmDrawable in the #PGM_DRAWABLE_NEAR layer.
* @width: the canvas width.
* @height: the canvas height.
* @pixel_offset_x: the pixel offset on x.
* @pixel_offset_y: the pixel offset on y.
* @pixel_formats: the pixel formats mask.
*
* The #PgmCanvas structure.
*/
struct _PgmCanvas {
/*< private >*/
GstObject parent;
PgmDrawable *entered_emission_stopper;
GHashTable *format_counter;
guint nb_formats;
/*< public >*/ /* with LOCK */
/* Layer lists */
GList *far_layer;
GList *middle_layer;
GList *near_layer;
/* Canvas size */
gfloat width, height;
/* Pixel offsets */
gfloat pixel_offset_x, pixel_offset_y;
/* Mask of supported formats */
gulong pixel_formats;
};
struct _PgmCanvasClass {
GstObjectClass parent_class;
/*< private >*/
/* Signals */
void (*drawable_added) (PgmCanvas *canvas,
PgmDrawable *drawable,
PgmDrawableLayer layer,
gint order);
void (*drawable_removed) (PgmCanvas *canvas,
PgmDrawable *drawable,
PgmDrawableLayer layer);
void (*drawable_reordered) (PgmCanvas *canvas,
PgmDrawable *drawable,
PgmDrawableLayer layer);
void (*size_changed) (PgmCanvas *canvas);
void (*regenerated) (PgmCanvas *canvas);
};
GType pgm_canvas_get_type (void);
PgmCanvas *pgm_canvas_new (void);
PgmError pgm_canvas_set_size (PgmCanvas *canvas,
gfloat width,
gfloat height);
PgmError pgm_canvas_get_size (PgmCanvas *canvas,
gfloat *width,
gfloat *height);
PgmError pgm_canvas_add (PgmCanvas *canvas,
PgmDrawableLayer layer,
PgmDrawable *drawable);
PgmError pgm_canvas_remove (PgmCanvas *canvas,
PgmDrawable *drawable);
PgmError pgm_canvas_add_many (PgmCanvas *canvas,
PgmDrawableLayer layer,
PgmDrawable *drawable_1,
...) G_GNUC_NULL_TERMINATED;
PgmError pgm_canvas_remove_many (PgmCanvas *canvas,
PgmDrawable *drawable_1,
...) G_GNUC_NULL_TERMINATED;
PgmError pgm_canvas_set_order (PgmCanvas *canvas,
PgmDrawable *drawable,
gint order);
PgmError pgm_canvas_get_order (PgmCanvas *canvas,
PgmDrawable *drawable,
PgmDrawableLayer *layer,
gint *order);
PgmError pgm_canvas_get_layer_count (PgmCanvas *canvas,
PgmDrawableLayer layer,
gint *count);
PgmError pgm_canvas_regenerate (PgmCanvas *canvas);
PgmError pgm_canvas_get_pixel_formats (PgmCanvas *canvas,
gulong *pixel_formats);
PgmError pgm_canvas_get_pixel_offsets (PgmCanvas *canvas,
gfloat *x,
gfloat *y);
/* Protected methods */
void _pgm_canvas_update_order (PgmCanvas *canvas,
PgmDrawable *drawable);
void _pgm_canvas_update_grid_aligned_drawables (PgmCanvas *canvas);
void _pgm_canvas_add_pixel_formats (PgmCanvas *canvas,
gulong pixel_formats);
void _pgm_canvas_remove_pixel_formats (PgmCanvas *canvas,
gulong pixel_formats);
PgmDrawable *_pgm_canvas_get_entered_emission_stopper (PgmCanvas *canvas);
void _pgm_canvas_set_entered_emission_stopper (PgmCanvas *canvas,
PgmDrawable *drawable);
G_END_DECLS
#endif /* __PGM_CANVAS_H__ */
|