[AdgModel] Enhanced docs
[adg.git] / adg / adg-pattern.c
blob0a5c5c9f99f03fd51c86eca24792fc67c9556484
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.
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-pattern.h"
41 GType
42 adg_pattern_get_type(void)
44 static int pattern_type = 0;
46 if (G_UNLIKELY(pattern_type == 0))
47 pattern_type = g_boxed_type_register_static("AdgPattern",
48 (GBoxedCopyFunc) cairo_pattern_reference,
49 (GBoxedFreeFunc) cairo_pattern_destroy);
51 return pattern_type;