Mercurial > audlegacy
comparison Plugins/Visualization/paranormal/pn/pnintegeroption.h @ 1507:0c5fdcf3f947 trunk
[svn] - incomplete stuff
author | nenolod |
---|---|
date | Sun, 06 Aug 2006 01:53:29 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1506:2a8e193c07a6 | 1507:0c5fdcf3f947 |
---|---|
1 /* Paranormal - A highly customizable audio visualization library | |
2 * Copyright (C) 2001 Jamie Gennis <jgennis@mindspring.com> | |
3 * | |
4 * This library is free software; you can redistribute it and/or | |
5 * modify it under the terms of the GNU Library 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. | |
8 * | |
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 * Library General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU Library General Public | |
15 * License along with this library; if not, write to the Free | |
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
17 */ | |
18 | |
19 #ifndef __PN_INTEGER_OPTION_H__ | |
20 #define __PN_INTEGER_OPTION_H__ | |
21 | |
22 #include "pnoption.h" | |
23 | |
24 | |
25 G_BEGIN_DECLS | |
26 | |
27 | |
28 #define PN_TYPE_INTEGER_OPTION (pn_integer_option_get_type ()) | |
29 #define PN_INTEGER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PN_TYPE_INTEGER_OPTION, PnIntegerOption)) | |
30 #define PN_INTEGER_OPTION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), PN_TYPE_INTEGER_OPTION, PnIntegerOptionClass)) | |
31 #define PN_IS_INTEGER_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PN_TYPE_INTEGER_OPTION)) | |
32 #define PN_IS_INTEGER_OPTION_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), PN_TYPE_INTEGER_OPTION)) | |
33 #define PN_INTEGER_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PN_TYPE_INTEGER_OPTION, PnIntegerOptionClass)) | |
34 | |
35 typedef struct _PnIntegerOption PnIntegerOption; | |
36 typedef struct _PnIntegerOptionClass PnIntegerOptionClass; | |
37 | |
38 struct _PnIntegerOption | |
39 { | |
40 PnOption parent; | |
41 | |
42 gint value; | |
43 gint min; | |
44 gint max; | |
45 }; | |
46 | |
47 struct _PnIntegerOptionClass | |
48 { | |
49 PnOptionClass parent_class; | |
50 }; | |
51 | |
52 /* Creators */ | |
53 GType pn_integer_option_get_type (void); | |
54 PnIntegerOption *pn_integer_option_new (const gchar *name, | |
55 const gchar *desc); | |
56 | |
57 /* Accessors */ | |
58 void pn_integer_option_set_value (PnIntegerOption *integer_option, | |
59 gint value); | |
60 gint pn_integer_option_get_value (PnIntegerOption *integer_option); | |
61 void pn_integer_option_set_min (PnIntegerOption *integer_option, | |
62 gint min); | |
63 gint pn_integer_option_get_min (PnIntegerOption *integer_option); | |
64 void pn_integer_option_set_max (PnIntegerOption *integer_option, | |
65 gint max); | |
66 gint pn_integer_option_get_max (PnIntegerOption *integer_option); | |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | |
73 #endif /* __PN_INTEGER_OPTION_H__ */ |