]> Pileus Git - aweather/blobdiff - src/plugin-ridge.h
Adding some (commented out) support for generating iso surfaces.
[aweather] / src / plugin-ridge.h
index 46f611bbb22e8e1eccf02b667193dbf608e650fb..7c31ee66737dd18b2d5e94fa73391d5c7f7824a7 100644 (file)
@@ -1,6 +1,49 @@
-#ifndef RIDGE_H
-#define RIDGE_H
+/*
+ * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * 
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program 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 General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
-gboolean ridge_init(AWeatherGui *gui);
+#ifndef __RIDGE_H__
+#define __RIDGE_H__
+
+#include <glib-object.h>
+
+#define AWEATHER_TYPE_RIDGE            (aweather_ridge_get_type ())
+#define AWEATHER_RIDGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),   AWEATHER_TYPE_RIDGE, AWeatherRidge))
+#define AWEATHER_IS_RIDGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),   AWEATHER_TYPE_RIDGE))
+#define AWEATHER_RIDGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST   ((klass), AWEATHER_TYPE_RIDGE, AWeatherRidgeClass))
+#define AWEATHER_IS_RIDGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE   ((klass), AWEATHER_TYPE_RIDGE))
+#define AWEATHER_RIDGE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),   AWEATHER_TYPE_RIDGE, AWeatherRidgeClass))
+
+typedef struct _AWeatherRidge      AWeatherRidge;
+typedef struct _AWeatherRidgeClass AWeatherRidgeClass;
+
+struct _AWeatherRidge {
+       GObject parent_instance;
+
+       /* instance members */
+       AWeatherGui *gui;
+};
+
+struct _AWeatherRidgeClass {
+       GObjectClass parent_class;
+};
+
+GType aweather_ridge_get_type();
+
+/* Methods */
+AWeatherRidge *aweather_ridge_new(AWeatherGui *gui);
 
 #endif