[AdgPoint] Removed from ADG
[adg.git] / adg / adg-pattern.c
blobfdb8dc97b8959c4c9bd1be8db0c3ff3f52797a6e
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007,2008,2009 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.
20 /**
21 * SECTION:adg-pattern
22 * @title: AdgPattern
23 * @short_description: A wrapper for the cairo_pattern_t struct
25 * This is essentially a wrapper for #cairo_pattern_t structures.
26 * It is needed to allow pattern parameters in #AdgStyle objects.
29 #include "adg-pattern.h"
32 GType
33 adg_pattern_get_type(void)
35 static int pattern_type = 0;
37 if (G_UNLIKELY(pattern_type == 0))
38 pattern_type = g_boxed_type_register_static("AdgPattern",
39 (GBoxedCopyFunc) cairo_pattern_reference,
40 (GBoxedFreeFunc) cairo_pattern_destroy);
42 return pattern_type;