"Fossies" - the Fresh Open Source Software Archive

Member "gtkdatabox-1.0.0/gtk/gtkdatabox_regions.h" (31 Mar 2021, 3607 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_regions.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_regions.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_regions
   22  * @short_description: A #GtkDataboxGraph used for displaying xxyy-values (x1, x2, y1 and y2 values) as oblongs from x1 to y1, x2 to y2.
   23  * @include: gtkdatabox_regions.h
   24  * @see_also: #GtkDatabox, #GtkDataboxGraph, #GtkDataboxPoints, #GtkDataboxLines, #GtkDataboxMarkers, #GtkDataboxRegions
   25  *
   26  * #GtkDataboxRegions is a #GtkDataboxGraph class for displaying xxyy-values as oblongs.
   27  *
   28  */
   29 
   30 #ifndef __GTK_DATABOX_REGIONS_H__
   31 #define __GTK_DATABOX_REGIONS_H__
   32 
   33 #include <gtkdatabox_xyyc_graph.h>
   34 
   35 G_BEGIN_DECLS
   36 #define GTK_DATABOX_TYPE_REGIONS          (gtk_databox_regions_get_type ())
   37 #define GTK_DATABOX_REGIONS(obj)          (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
   38                                            GTK_DATABOX_TYPE_REGIONS, \
   39                                            GtkDataboxRegions))
   40 #define GTK_DATABOX_REGIONS_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), \
   41                                            GTK_DATABOX_TYPE_REGIONS, \
   42                                            GtkDataboxRegionsClass))
   43 #define GTK_DATABOX_IS_REGIONS(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
   44                                            GTK_DATABOX_TYPE_REGIONS))
   45 #define GTK_DATABOX_IS_REGIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
   46                                            GTK_DATABOX_TYPE_REGIONS))
   47 #define GTK_DATABOX_REGIONS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
   48                                            GTK_DATABOX_TYPE_REGIONS, \
   49                                            GtkDataboxRegionsClass))
   50 
   51 /**
   52  * GtkDataboxRegions
   53  *
   54  * #GtkDataboxRegions is a #GtkDataboxGraph class for displaying xxyy-values as oblongs.
   55  *
   56  * @see_also: #GtkDatabox, #GtkDataboxGraph, #GtkDataboxPoints, #GtkDataboxLines, #GtkDataboxMarkers, #GtkDataboxBars, #GtkDataboxOffsetBars
   57  */
   58    typedef struct _GtkDataboxRegions GtkDataboxRegions;
   59 
   60    /**
   61     * GtkDataboxRegionsClass
   62     *
   63     * The object class of #GtkDataboxRegions.
   64     *
   65     **/
   66    typedef struct _GtkDataboxRegionsClass GtkDataboxRegionsClass;
   67 
   68    struct _GtkDataboxRegions
   69    {
   70       /*< private >*/
   71       GtkDataboxXYYCGraph parent;
   72    };
   73 
   74    struct _GtkDataboxRegionsClass
   75    {
   76       GtkDataboxXYYCGraphClass parent_class;
   77    };
   78 
   79    GType gtk_databox_regions_get_type (void);
   80 
   81    GtkDataboxGraph *gtk_databox_regions_new (guint len, gfloat * X, gfloat * Y1, gfloat * Y2, GdkRGBA * color);
   82    GtkDataboxGraph *gtk_databox_regions_new_full (guint maxlen, guint len,
   83             void * X, guint xstart, guint xstride, GType xtype,
   84             void * Y1, guint y1start, guint y1stride,
   85             void * Y2, guint y2start, guint y2stride, GType ytype,
   86             GdkRGBA * color);
   87 G_END_DECLS
   88 #endif              /* __GTK_DATABOX_REGIONS_H__ */