/usr/include/libgoffice-0.8/goffice/utils/go-pattern.h is in libgoffice-0.8-dev 0.8.17-8.
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 | /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* go-pattern.h :
*
* Copyright (C) 2003-2004 Jody Goldberg (jody@gnome.org)
*
* 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
*/
#ifndef GO_PATTERN_H
#define GO_PATTERN_H
#include <goffice/goffice.h>
#include <libxml/tree.h>
#include <cairo.h>
G_BEGIN_DECLS
struct _GOPattern {
GOColor fore, back;
unsigned pattern;
};
/* Useful for themes to explicitly name the pattern */
typedef enum {
GO_PATTERN_SOLID,
GO_PATTERN_GREY75,
GO_PATTERN_GREY50,
GO_PATTERN_GREY25,
GO_PATTERN_GREY125,
GO_PATTERN_GREY625,
GO_PATTERN_HORIZ,
GO_PATTERN_VERT,
GO_PATTERN_REV_DIAG,
GO_PATTERN_DIAG,
GO_PATTERN_DIAG_CROSS,
GO_PATTERN_THICK_DIAG_CROSS,
GO_PATTERN_THIN_HORIZ,
GO_PATTERN_THIN_VERT,
GO_PATTERN_THIN_REV_DIAG,
GO_PATTERN_THIN_DIAG,
GO_PATTERN_THIN_HORIZ_CROSS,
GO_PATTERN_THIN_DIAG_CROSS,
GO_PATTERN_FOREGROUND_SOLID,
GO_PATTERN_SMALL_CIRCLES,
GO_PATTERN_SEMI_CIRCLES,
GO_PATTERN_THATCH,
GO_PATTERN_LARGE_CIRCLES,
GO_PATTERN_BRICKS,
GO_PATTERN_MAX
} GOPatternType;
GOPatternType go_pattern_from_str (char const *name);
char const *go_pattern_as_str (GOPatternType pattern);
gboolean go_pattern_is_solid (GOPattern const *pat, GOColor *color);
void go_pattern_set_solid (GOPattern *pat, GOColor fore);
guint8 const *go_pattern_get_pattern (GOPattern const *pat);
xmlChar *go_pattern_get_svg_path (GOPattern const *pattern, double *width, double *height);
cairo_pattern_t *go_pattern_create_cairo_pattern (GOPattern const *pattern, cairo_t *cr);
G_END_DECLS
#endif /* GO_PATTERN_H */
|