# GnomeCanvasShape

## Name

GnomeCanvasShape --

## Synopsis

    #include <libgnomecanvas/libgnomecanvas.h>

    struct      GnomeCanvasShape;
    struct      GnomeCanvasShapePriv;

    void        gnome_canvas_shape_set_path_def (GnomeCanvasShape *shape,
                                                 GnomeCanvasPathDef *def);
    GnomeCanvasPathDef* gnome_canvas_shape_get_path_def
                                                (GnomeCanvasShape *shape);

## Description

## Details

### struct GnomeCanvasShape

    struct GnomeCanvasShape {

    	GnomeCanvasItem item;

    	GnomeCanvasShapePriv *priv;	/* Private data */
    };

### struct GnomeCanvasShapePriv

    struct GnomeCanvasShapePriv;

### gnome_canvas_shape_set_path_def ()

    void        gnome_canvas_shape_set_path_def (GnomeCanvasShape *shape,
                                                 GnomeCanvasPathDef *def);

This function sets the the GnomeCanvasPathDef used by the GnomeCanvasShape. Notice, that it does not request updates, as it is meant to be used from item implementations, from inside update queue.

`shape` : | a GnomeCanvasShape
`def` : | a GnomeCanvasPathDef

### gnome_canvas_shape_get_path_def ()

    GnomeCanvasPathDef* gnome_canvas_shape_get_path_def
                                                (GnomeCanvasShape *shape);

This function returns the GnomeCanvasPathDef that the shape currently uses. It adds a reference to the GnomeCanvasPathDef and returns it, if there is not a GnomeCanvasPathDef set for the shape it returns NULL.

`shape` : | a GnomeCanvasShape
Returns : | a GnomeCanvasPathDef or NULL if none is set for the shape.