diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 00:54:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:51:39 +0800 |
commit | a6a004b8f52688ca6e01c0f1340d42cfaf9239e1 (patch) | |
tree | c51a0b629dfc43c70a8f524e82610837f00635e8 /libgnomecanvas/gnome-canvas-shape.h | |
parent | a68d0f50da7a9d5cd9f33b8a95aa23b58e7edea8 (diff) | |
download | gsoc2013-evolution-a6a004b8f52688ca6e01c0f1340d42cfaf9239e1.tar.gz gsoc2013-evolution-a6a004b8f52688ca6e01c0f1340d42cfaf9239e1.tar.zst gsoc2013-evolution-a6a004b8f52688ca6e01c0f1340d42cfaf9239e1.zip |
Merge GnomeCanvasShape into GnomeCanvasRect.
GnomeCanvasRect is the only subclass of GnomeCanvasShape,
and passing Cairo paths around doesn't seem to work well.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-shape.h')
-rw-r--r-- | libgnomecanvas/gnome-canvas-shape.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/libgnomecanvas/gnome-canvas-shape.h b/libgnomecanvas/gnome-canvas-shape.h deleted file mode 100644 index c27c606868..0000000000 --- a/libgnomecanvas/gnome-canvas-shape.h +++ /dev/null @@ -1,75 +0,0 @@ -/* Generic bezier shape item for GnomeCanvas - * - * 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. - * - * Copyright (C) 1998,1999 The Free Software Foundation - * - * Authors: Federico Mena <federico@nuclecu.unam.mx> - * Raph Levien <raph@acm.org> - * Lauris Kaplinski <lauris@ximian.com> - * Rusty Conover <rconover@bangtail.net> - */ - -#ifndef GNOME_CANVAS_SHAPE_H -#define GNOME_CANVAS_SHAPE_H - -#include <libgnomecanvas/gnome-canvas.h> - -G_BEGIN_DECLS - -/* Shape item for the canvas. - * - * The following object arguments are available: - * - * name type read/write description - * ------------------------------------------------------------------------------------------ - * fill_color string W X color specification for fill color, - * or NULL pointer for no color (transparent). - * fill_color_gdk GdkColor* RW Allocated GdkColor for fill. - * outline_color string W X color specification for outline color, - * or NULL pointer for no color (transparent). - * outline_color_gdk GdkColor* RW Allocated GdkColor for outline. - * width_pixels uint RW Width of the outline in pixels. The outline will - * not be scaled when the canvas zoom factor is changed. - * width_units gdouble RW Width of the outline in canvas units. The outline - * will be scaled when the canvas zoom factor is changed. - * cap_style cairo_line_cap_t RW Cap ("endpoint") style for the bpath. - * join_style cairo_line_join_t RW Join ("vertex") style for the bpath. - * wind cairo_fill_rule_t RW Winding rule for the bpath. - * dash XXX: disabled RW Dashing pattern - * miterlimit gdouble RW Minimum angle between segments, where miter join - * rule is applied. - */ - -#define GNOME_TYPE_CANVAS_SHAPE (gnome_canvas_shape_get_type ()) -#define GNOME_CANVAS_SHAPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_CANVAS_SHAPE, GnomeCanvasShape)) -#define GNOME_CANVAS_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_CANVAS_SHAPE, GnomeCanvasShapeClass)) -#define GNOME_IS_CANVAS_SHAPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_CANVAS_SHAPE)) -#define GNOME_IS_CANVAS_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_CANVAS_SHAPE)) - -typedef struct _GnomeCanvasShape GnomeCanvasShape; -typedef struct _GnomeCanvasShapePriv GnomeCanvasShapePriv; -typedef struct _GnomeCanvasShapeClass GnomeCanvasShapeClass; - -struct _GnomeCanvasShape { - GnomeCanvasItem item; - - GnomeCanvasShapePriv *priv; /* Private data */ -}; - -struct _GnomeCanvasShapeClass { - 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_set_path (GnomeCanvasShape *shape, cairo_path_t *path); -const cairo_path_t *gnome_canvas_shape_get_path (GnomeCanvasShape *shape); - -/* Standard Gtk function */ -GType gnome_canvas_shape_get_type (void) G_GNUC_CONST; - -G_END_DECLS - -#endif |