/* * Copyright (C) 2009 Andy Spencer * * 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 . */ #ifndef __AWEATHER_GUI_H__ #define __AWEATHER_GUI_H__ #include #include #include "aweather-view.h" /* Type macros */ #define AWEATHER_TYPE_GUI (aweather_gui_get_type()) #define AWEATHER_GUI(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AWEATHER_TYPE_GUI, AWeatherGui)) #define AWEATHER_IS_GUI(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AWEATHER_TYPE_GUI)) #define AWEATHER_GUI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AWEATHER_TYPE_GUI, AWeatherGuiClass)) #define AWEATHER_IS_GUI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AWEATHER_TYPE_GUI)) #define AWEATHER_GUI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AWEATHER_TYPE_GUI, AWeatherGuiClass)) typedef struct _AWeatherGui AWeatherGui; typedef struct _AWeatherGuiClass AWeatherGuiClass; struct _AWeatherGui { GObject parent_instance; /* instance members */ AWeatherView *view; GtkBuilder *builder; GtkWindow *window; GtkNotebook *tabs; GtkDrawingArea *drawing; }; struct _AWeatherGuiClass { GObjectClass parent_class; /* class members */ }; GType aweather_gui_get_type(void); /* Methods */ AWeatherGui *aweather_gui_new(); AWeatherView *aweather_gui_get_view(AWeatherGui *gui); GtkWidget *aweather_gui_get_widget(AWeatherGui *gui, const gchar *name); void aweather_gui_gl_begin(AWeatherGui *gui); void aweather_gui_gl_end(AWeatherGui *gui); void aweather_gui_gl_flush(AWeatherGui *gui); //void aweather_gui_register_plugin(AWeatherGui *gui, AWeatherPlugin *plugin); #endif