X-Git-Url: http://git.maemo.org/git/?p=scdataviz;a=blobdiff_plain;f=src%2Fgraphwidget.h;fp=src%2Fgraphwidget.h;h=cb2e3903b5c1b3e704c57fa268071947f9be5310;hp=0000000000000000000000000000000000000000;hb=ca8d26a012451771595cf54194888b1984c5dd17;hpb=b5cfdf4d4f01bf9f8def7d69fd58e254886ed2d5 diff --git a/src/graphwidget.h b/src/graphwidget.h new file mode 100644 index 0000000..cb2e390 --- /dev/null +++ b/src/graphwidget.h @@ -0,0 +1,55 @@ +/* +** Graph.h +** +** Made by Johnny Q. Hacker +** Login +** + + + + Copyright (C) 2008 Joseph Pingenot + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +** Started on Thu Jul 17 10:51:32 2008 Johnny Q. Hacker +** Last update Thu Oct 8 14:28:34 2009 Johnny Q. Hacker +*/ + +#ifndef GRAPHWIDGET_H_ +#define GRAPHWIDGET_H_ + +#include +#include + +typedef struct _GraphWidget { + GtkDrawingArea parent_instance; + Graph *graph; +} GraphWidget; + +typedef struct _GraphWidgetClass { + GtkDrawingAreaClass parent_class; +} GraphWidgetClass; + +#define GRAPH_WIDGET_TYPE (graph_widget_get_type()) +#define GRAPH_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAPH_WIDGET_TYPE, GraphWidget)) +#define GRAPH_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GRAPH_WIDGET, GraphWidgetClass)) +#define IS_GRAPH_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAPH_WIDGET_TYPE)) +#define IS_GRAPH_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), GRAPH_WIDGET_CLASS_TYPE)) +#define GRAPH_WIDGET_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAPH_WIDGET, GraphWidgetClass)) + +GtkWidget* graph_widget_new(void); + +Graph* graph_widget_get_graph(GraphWidget* gw); + +#endif /* !GRAPHWIDGET_H_ */