diff Plugins/Visualization/paranormal/pn/pnstringoption.h @ 1507:0c5fdcf3f947 trunk

[svn] - incomplete stuff
author nenolod
date Sun, 06 Aug 2006 01:53:29 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Visualization/paranormal/pn/pnstringoption.h	Sun Aug 06 01:53:29 2006 -0700
@@ -0,0 +1,64 @@
+/* Paranormal - A highly customizable audio visualization library
+ * Copyright (C) 2001  Jamie Gennis <jgennis@mindspring.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __PN_STRING_OPTION_H__
+#define __PN_STRING_OPTION_H__
+
+#include "pnoption.h"
+
+
+G_BEGIN_DECLS
+
+
+#define PN_TYPE_STRING_OPTION              (pn_string_option_get_type ())
+#define PN_STRING_OPTION(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), PN_TYPE_STRING_OPTION, PnStringOption))
+#define PN_STRING_OPTION_CLASS(class)      (G_TYPE_CHECK_CLASS_CAST ((class), PN_TYPE_STRING_OPTION, PnStringOptionClass))
+#define PN_IS_STRING_OPTION(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PN_TYPE_STRING_OPTION))
+#define PN_IS_STRING_OPTION_CLASS(class)   (G_TYPE_CHECK_CLASS_TYPE ((class), PN_TYPE_STRING_OPTION))
+#define PN_STRING_OPTION_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PN_TYPE_STRING_OPTION, PnStringOptionClass))
+
+typedef struct _PnStringOption        PnStringOption;
+typedef struct _PnStringOptionClass   PnStringOptionClass;
+
+struct _PnStringOption
+{
+  PnOption parent;
+
+  gchar *value;
+};
+
+struct _PnStringOptionClass
+{
+  PnOptionClass parent_class;
+};
+
+/* Creators */
+GType                 pn_string_option_get_type                (void);
+PnStringOption      *pn_string_option_new                     (const gchar *name,
+								 const gchar *desc);
+
+/* Accessors */
+void                  pn_string_option_set_value               (PnStringOption *string_option,
+								 const gchar *value);
+gchar                *pn_string_option_get_value               (PnStringOption *string_option);
+
+
+
+
+
+#endif /* __PN_STRING_OPTION_H__ */