"Fossies" - the Fresh Open Source Software Archive

Member "gtkdatabox-1.0.0/gtk/gtkdatabox_xyyc_graph.h" (31 Mar 2021, 4493 Bytes) of package /linux/privat/gtkdatabox-1.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gtkdatabox_xyyc_graph.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 0.9.3.1_vs_1.0.0.

    1 /* $Id: gtkdatabox_xyyc_graph.h 4 2008-06-22 09:19:11Z rbock $ */
    2 /* GtkDatabox - An extension to the gtk+ library
    3  * Copyright (C) 1998 - 2008  Dr. Roland Bock
    4  *
    5  * This program is free software; you can redistribute it and/or
    6  * modify it under the terms of the GNU Lesser General Public License
    7  * as published by the Free Software Foundation; either version 2.1
    8  * of the License, or (at your option) any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU Lesser General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program; if not, write to the Free Software
   17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
   18  */
   19 
   20 /**
   21  * SECTION:gtkdatabox_xyyc_graph
   22  * @short_description: An abstract anchestor for all graphs which display xyy-values (x, y1 and y2 values) in one color.
   23  * @include: gtkdatabox_xyyc_graph.h
   24  * @see_also: #GtkDatabox, #GtkDataboxOffsetBars
   25  *
   26  * GtkDataboxXYYCGraphs are an abstract class for displaying XYY-data (x, y1 and y2 values) in one color. The values for the data are represented
   27  * as an array of X values, an array of Y1 values and an array of Y2 values. In order to actually display data, you should
   28  * use one of the derived classes.
   29  *
   30  */
   31 
   32 #ifndef __GTK_DATABOX_XYYC_GRAPH_H__
   33 #define __GTK_DATABOX_XYYC_GRAPH_H__
   34 
   35 #include <gtkdatabox_graph.h>
   36 
   37 G_BEGIN_DECLS
   38 #define GTK_DATABOX_TYPE_XYYC_GRAPH       (gtk_databox_xyyc_graph_get_type ())
   39 #define GTK_DATABOX_XYYC_GRAPH(obj)       (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
   40                                            GTK_DATABOX_TYPE_XYYC_GRAPH, \
   41                                            GtkDataboxXYYCGraph))
   42 #define GTK_DATABOX_XYYC_GRAPH_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), \
   43                                            GTK_DATABOX_TYPE_XYYC_GRAPH, \
   44                                            GtkDataboxXYYCGraphClass))
   45 #define GTK_DATABOX_IS_XYYC_GRAPH(obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
   46                                            GTK_DATABOX_TYPE_XYYC_GRAPH))
   47 #define GTK_DATABOX_IS_XYYC_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
   48                                            GTK_DATABOX_TYPE_XYYC_GRAPH))
   49 #define GTK_DATABOX_XYYC_GRAPH_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
   50                                            GTK_DATABOX_TYPE_XYYC_GRAPH, \
   51                                            GtkDataboxXYYCGraphClass))
   52 
   53 /**
   54  * GtkDataboxXYYCGraph:
   55  *
   56  * GtkDataboxXYYCGraphs are an abstract class for displaying XY-data in one color. The values for the data are represented
   57  * as an array of X values and a second array of Y values. In order to actually display data, you should
   58  * use one of the derived classes.
   59  *
   60  */
   61    typedef struct _GtkDataboxXYYCGraph GtkDataboxXYYCGraph;
   62 
   63    /**
   64     * GtkDataboxXYYCGraphClass
   65     *
   66     * The object class of #GtkDataboxXYYCGraph.
   67     *
   68     **/
   69    typedef struct _GtkDataboxXYYCGraphClass GtkDataboxXYYCGraphClass;
   70 
   71    struct _GtkDataboxXYYCGraph
   72    {
   73       /*< private >*/
   74       GtkDataboxGraph parent;
   75    };
   76 
   77    struct _GtkDataboxXYYCGraphClass
   78    {
   79       GtkDataboxGraphClass parent_class;
   80    };
   81 
   82    GType gtk_databox_xyyc_graph_get_type (void);
   83 
   84    guint gtk_databox_xyyc_graph_get_length (GtkDataboxXYYCGraph * xyyc_graph);
   85    guint gtk_databox_xyyc_graph_get_maxlen (GtkDataboxXYYCGraph * xyyc_graph);
   86    gfloat *gtk_databox_xyyc_graph_get_X (GtkDataboxXYYCGraph * xyyc_graph);
   87    gfloat *gtk_databox_xyyc_graph_get_Y1 (GtkDataboxXYYCGraph * xyyc_graph);
   88    gfloat *gtk_databox_xyyc_graph_get_Y2 (GtkDataboxXYYCGraph * xyyc_graph);
   89    guint gtk_databox_xyyc_graph_get_xstart (GtkDataboxXYYCGraph * xyyc_graph);
   90    guint gtk_databox_xyyc_graph_get_y1start (GtkDataboxXYYCGraph * xyyc_graph);
   91    guint gtk_databox_xyyc_graph_get_y2start (GtkDataboxXYYCGraph * xyyc_graph);
   92    guint gtk_databox_xyyc_graph_get_xstride (GtkDataboxXYYCGraph * xyyc_graph);
   93    guint gtk_databox_xyyc_graph_get_y1stride (GtkDataboxXYYCGraph * xyyc_graph);
   94    guint gtk_databox_xyyc_graph_get_y2stride (GtkDataboxXYYCGraph * xyyc_graph);
   95    GType gtk_databox_xyyc_graph_get_xtype (GtkDataboxXYYCGraph * xyyc_graph);
   96    GType gtk_databox_xyyc_graph_get_ytype (GtkDataboxXYYCGraph * xyyc_graph);
   97 
   98 G_END_DECLS
   99 #endif              /* __GTK_DATABOX_XYYC_GRAPH_H__ */