/usr/include/libgoffice-0.8/goffice/utils/go-path.h is in libgoffice-0.8-dev 0.8.17-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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* go-path.h
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2006 Emmanuel Pacaud (emmanuel.pacaud@lapp.in2p3.fr)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*
* This code is an adaptation of the path code which can be found in
* the cairo library (http://cairographics.org).
*
* Contributor(s):
* Carl D. Worth <cworth@cworth.org>
* Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
*/
#ifndef GO_PATH_H
#define GO_PATH_H
#include <glib.h>
G_BEGIN_DECLS
typedef enum {
GO_PATH_DIRECTION_FORWARD,
GO_PATH_DIRECTION_BACKWARD
} GOPathDirection;
typedef enum {
GO_PATH_OPTIONS_SNAP_COORDINATES = 1<<0,
GO_PATH_OPTIONS_SNAP_WIDTH = 1<<1,
GO_PATH_OPTIONS_SHARP = 3
} GOPathOptions;
typedef struct {
double x;
double y;
} GOPathPoint;
typedef void (GOPathMoveToFunc) (void *closure, GOPathPoint const *point);
typedef void (GOPathLineToFunc) (void *closure, GOPathPoint const *point);
typedef void (GOPathCurveToFunc) (void *closure, GOPathPoint const *point0,
GOPathPoint const *point1,
GOPathPoint const *point2);
typedef void (GOPathClosePathFunc) (void *closure);
GType go_path_get_type (void);
#define GO_TYPE_PATH go_path_get_type ()
#define GO_IS_PATH(x) ((x) != NULL)
GOPath *go_path_new (void);
void go_path_clear (GOPath *path);
void go_path_ref (GOPath *path);
void go_path_free (GOPath *path);
void go_path_set_options (GOPath *path, GOPathOptions options);
GOPathOptions go_path_get_options (GOPath const *path);
void go_path_move_to (GOPath *path, double x, double y);
void go_path_line_to (GOPath *path, double x, double y);
void go_path_curve_to (GOPath *path, double x0, double y0,
double x1, double y1,
double x2, double y2);
void go_path_close (GOPath *path);
void go_path_ring_wedge (GOPath *path, double cx, double cy,
double rx_out, double ry_out,
double rx_in, double ry_in,
double th0, double th1);
void go_path_pie_wedge (GOPath *path, double cx, double cy,
double rx, double ry,
double th0, double th1);
void go_path_arc (GOPath *path,
double cx, double cy,
double rx, double ry,
double th0, double th1);
void go_path_arc_to (GOPath *path,
double cx, double cy,
double rx, double ry,
double th0, double th1);
void go_path_rectangle (GOPath *path, double x, double y,
double width, double height);
void go_path_interpret (GOPath const *path,
GOPathDirection direction,
GOPathMoveToFunc *move_to,
GOPathLineToFunc *line_to,
GOPathCurveToFunc *curve_to,
GOPathClosePathFunc *close_path,
void *closure);
void go_path_to_cairo (GOPath const *path,
GOPathDirection direction,
cairo_t *cr);
GOPath *go_path_copy (GOPath const *path);
GOPath *go_path_append (GOPath *path1, GOPath const *path2);
G_END_DECLS
#endif
|