/* -*- Mode: C; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */ /* * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation * All rights reserved. * * This file is part of the Gnome Library. * * The Gnome Library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * The Gnome Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with the Gnome Library; see the file COPYING.LIB. If not, * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02111-1307, USA. */ /* @NOTATION@ */ /* GnomeCanvas widget - Tk-like canvas widget for Gnome * * GnomeCanvas is basically a port of the Tk toolkit's most excellent canvas * widget. Tk is copyrighted by the Regents of the University of California, * Sun Microsystems, and other parties. * * * Authors: Federico Mena * Raph Levien */ #ifndef GNOME_CANVAS_SHAPE_EXT_H #define GNOME_CANVAS_SHAPE_EXT_H #include typedef struct _GnomeCanvasShapeExt GnomeCanvasShapeExt; typedef struct _GnomeCanvasShapeExtClass GnomeCanvasShapeExtClass; G_BEGIN_DECLS #define GNOME_TYPE_CANVAS_SHAPE_EXT (gnome_canvas_shape_ext_get_type ()) #define GNOME_CANVAS_SHAPE_EXT(obj) (GTK_CHECK_CAST ((obj), GNOME_TYPE_CANVAS_SHAPE_EXT, GnomeCanvasShapeExt)) #define GNOME_CANVAS_SHAPE_EXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GNOME_TYPE_CANVAS_SHAPE_EXT, GnomeCanvasShapeExtClass)) #define GNOME_IS_CANVAS_SHAPE_EXT(obj) (GTK_CHECK_TYPE ((obj), GNOME_TYPE_CANVAS_SHAPE_EXT)) #define GNOME_IS_CANVAS_SHAPE_EXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_CANVAS_SHAPE_EXT)) #define GNOME_CANVAS_SHAPE_EXT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GNOME_TYPE_CANVAS_SHAPE_EXT, GnomeCanvasShapeExtClass)) struct _GnomeCanvasShapeExt { GnomeCanvasItem item; GnomeCanvasShapePriv *priv; /* Private data */ }; struct _GnomeCanvasShapeExtClass { GnomeCanvasItemClass parent_class; }; /* WARNING! These are not usable from modifying shapes from user programs */ /* These are meant, to set master shape from subclass ::update method */ void gnome_canvas_shape_ext_set_path_def (GnomeCanvasShapeExt *shape, GnomeCanvasPathDef *def); GnomeCanvasPathDef *gnome_canvas_shape_ext_get_path_def (GnomeCanvasShapeExt *shape); /* Standard Gtk function */ GType gnome_canvas_shape_ext_get_type (void) G_GNUC_CONST; G_END_DECLS #endif