[build] Let "make distcheck" work again
[adg.git] / adg / adg-pattern.c
blob4e4f583566a97496469e43d649a2783e50ee10f1
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007,2008,2009,2010 Nicola Fontana <ntd at entidi.it>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 /**
22 * SECTION:adg-pattern
23 * @Section_Id:AdgPattern
24 * @title: AdgPattern
25 * @short_description: A wrapper for #cairo_pattern_t
27 * AdgPattern is a wrapper in #GType syntax of the #cairo_pattern_t struct.
28 **/
30 /**
31 * AdgPattern:
33 * Another name for #cairo_pattern_t: check its documentation for the
34 * fields description and visibility details.
35 **/
38 #include "adg-internal.h"
39 #include "adg-pattern.h"
42 GType
43 adg_pattern_get_type(void)
45 static int pattern_type = 0;
47 if (G_UNLIKELY(pattern_type == 0))
48 pattern_type = g_boxed_type_register_static("AdgPattern",
49 (GBoxedCopyFunc) cairo_pattern_reference,
50 (GBoxedFreeFunc) cairo_pattern_destroy);
52 return pattern_type;