comparison Plugins/Visualization/paranormal/pn/pnfloatoption.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_FLOAT_OPTION_H__
20 #define __PN_FLOAT_OPTION_H__
21
22 #include "pnoption.h"
23
24
25 G_BEGIN_DECLS
26
27
28 #define PN_TYPE_FLOAT_OPTION (pn_float_option_get_type ())
29 #define PN_FLOAT_OPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PN_TYPE_FLOAT_OPTION, PnFloatOption))
30 #define PN_FLOAT_OPTION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), PN_TYPE_FLOAT_OPTION, PnFloatOptionClass))
31 #define PN_IS_FLOAT_OPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PN_TYPE_FLOAT_OPTION))
32 #define PN_IS_FLOAT_OPTION_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), PN_TYPE_FLOAT_OPTION))
33 #define PN_FLOAT_OPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PN_TYPE_FLOAT_OPTION, PnFloatOptionClass))
34
35 typedef struct _PnFloatOption PnFloatOption;
36 typedef struct _PnFloatOptionClass PnFloatOptionClass;
37
38 struct _PnFloatOption
39 {
40 PnOption parent;
41
42 gfloat value;
43 gfloat min;
44 gfloat max;
45 };
46
47 struct _PnFloatOptionClass
48 {
49 PnOptionClass parent_class;
50 };
51
52 /* Creators */
53 GType pn_float_option_get_type (void);
54 PnFloatOption *pn_float_option_new (const gchar *name,
55 const gchar *desc);
56
57 /* Accessors */
58 void pn_float_option_set_value (PnFloatOption *float_option,
59 gfloat value);
60 gfloat pn_float_option_get_value (PnFloatOption *float_option);
61 void pn_float_option_set_min (PnFloatOption *float_option,
62 gfloat min);
63 gfloat pn_float_option_get_min (PnFloatOption *float_option);
64 void pn_float_option_set_max (PnFloatOption *float_option,
65 gfloat max);
66 gfloat pn_float_option_get_max (PnFloatOption *float_option);
67
68
69
70
71
72
73 #endif /* __PN_FLOAT_OPTION_H__ */