1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
5
* Copyright (C) 2003 Simon Budig
6
* Copyright (C) 2005 Sven Neumann
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
#ifndef __GIMP_DASH_PATTERN_H__
24
#define __GIMP_DASH_PATTERN_H__
27
#define GIMP_TYPE_DASH_PATTERN (gimp_dash_pattern_get_type ())
28
#define GIMP_VALUE_HOLDS_DASH_PATTERN(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_DASH_PATTERN))
31
GType gimp_dash_pattern_get_type (void) G_GNUC_CONST;
33
GArray * gimp_dash_pattern_new_from_preset (GimpDashPreset preset);
34
GArray * gimp_dash_pattern_new_from_segments (const gboolean *segments,
38
void gimp_dash_pattern_fill_segments (GArray *pattern,
42
GArray * gimp_dash_pattern_from_value_array (GValueArray *value_array);
43
GValueArray * gimp_dash_pattern_to_value_array (GArray *pattern);
45
GArray * gimp_dash_pattern_copy (GArray *pattern);
46
void gimp_dash_pattern_free (GArray *pattern);
49
#endif /* __GIMP_DASH_PATTERN_H__ */