• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

plplotcanvas-hacktext.h

Go to the documentation of this file.
00001 // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
00002 //
00003 //  plplotcanvas-hacktext.h: Hacktext CanvasItem, cloned from the
00004 //                           gnome-print project
00005 //
00006 //  This program is free software; you can redistribute it and/or
00007 //  modify it under the terms of the GNU Library General Public License
00008 //  as published by the Free Software Foundation; either version 2 of
00009 //  the License, or (at your option) any later version.
00010 //
00011 //  This program is distributed in the hope that it will be useful,
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //  GNU Library General Public License for more details.
00015 //
00016 //  You should have received a copy of the GNU Library General Public
00017 //  License along with this program; if not, write to the Free Software
00018 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 //
00020 //  Authors:
00021 //    Federico Mena <federico@nuclecu.unam.mx>
00022 //    Raph Levien <raph@acm.org>
00023 //    Lauris Kaplinski <lauris@helixcode.com>
00024 //
00025 //  Copyright (C) 1998-1999 The Free Software Foundation
00026 //  Copyright (C) 2000-2002 Ximian Inc.
00027 //
00028 //
00029 
00030 #ifndef __PLPLOT_CANVAS_HACKTEXT_H__
00031 #define __PLPLOT_CANVAS_HACKTEXT_H__
00032 
00033 #include <glib.h>
00034 
00035 G_BEGIN_DECLS
00036 
00037 // Hacktext item for the canvas.
00038 //
00039 // The following object arguments are available:
00040 //
00041 // name                 type                    read/write      description
00042 //--------------------------------------------------------------------------
00043 // text                 char *                  RW              The string of the text item.
00044 // glyphlist            GnomeGlyphList *        W               Glyphlist
00045 // fill_color           string                  W               X color specification for fill color,
00046 //                                                              or NULL pointer for no color (transparent).
00047 // fill_color_gdk       GdkColor*               RW              Allocated GdkColor for fill.
00048 //
00049 
00050 #define PLPLOT_TYPE_CANVAS_HACKTEXT    ( plplot_canvas_hacktext_get_type() )
00051 #define PLPLOT_CANVAS_HACKTEXT( o )             ( G_TYPE_CHECK_INSTANCE_CAST( ( o ), PLPLOT_TYPE_CANVAS_HACKTEXT, PlplotCanvasHacktext ) )
00052 #define PLPLOT_CANVAS_HACKTEXT_CLASS( k )       ( G_TYPE_CHECK_CLASS_CAST( ( k ), PLPLOT_TYPE_CANVAS_HACKTEXT, PlplotCanvasHacktextClass ) )
00053 #define PLPLOT_IS_CANVAS_HACKTEXT( o )          ( G_TYPE_CHECK_INSTANCE_TYPE( ( o ), PLPLOT_TYPE_CANVAS_HACKTEXT ) )
00054 #define PLPLOT_IS_CANVAS_HACKTEXT_CLASS( k )    ( G_TYPE_CHECK_CLASS_TYPE( ( k ), PLPLOT_TYPE_CANVAS_HACKTEXT ) )
00055 
00056 typedef struct _PlplotCanvasHacktext        PlplotCanvasHacktext;
00057 typedef struct _PlplotCanvasHacktextPriv    PlplotCanvasHacktextPriv;
00058 typedef struct _PlplotCanvasHacktextClass   PlplotCanvasHacktextClass;
00059 
00060 #include <libgnomecanvas/libgnomecanvas.h>
00061 
00062 struct _PlplotCanvasHacktext
00063 {
00064     GnomeCanvasItem          item;
00065 
00066     char                     *text;        // String of the text item
00067     guint                    fill_color;   // Fill color, RGBA
00068     gulong                   fill_pixel;   // Color for fill
00069     guint                    fill_set : 1; // Is fill color set?
00070 
00071     double                   size;         // size in user units
00072     double                   x, y;         // x, y coords of text origin
00073 
00074     // Antialiased specific stuff follows
00075     guint32                  fill_rgba; // RGBA color for filling
00076     PlplotCanvasHacktextPriv *priv;     // Private data
00077 };
00078 
00079 struct _PlplotCanvasHacktextClass
00080 {
00081     GnomeCanvasItemClass parent_class;
00082 };
00083 
00084 GType plplot_canvas_hacktext_get_type( void );
00085 
00086 G_END_DECLS
00087 
00088 #endif // __PLPLOT_CANVAS_HACKTEXT_H__

Generated on Wed Oct 12 2011 20:42:22 for PLplot by  doxygen 1.7.1