Next: , Previous: GnomeCanvasRichText, Up: Top


14 GnomeCanvasShape

Base class for canvas item shapes

14.1 Overview

Provides a base class for canvas item shapes, including: <gnome-canvas-bpath>, <gnome-canvas-ellipse>, <gnome-canvas-rect>, and <gnome-canvas-polygon>.

14.2 Usage

— Class: <gnome-canvas-shape>

Derives from <gnome-canvas-item>.

This class defines the following properties:

fill-color

fill-color-gdk

fill-color-rgba

outline-color

outline-color-gdk

outline-color-rgba

fill-stipple

outline-stipple

width-pixels

width-units

cap-style

join-style

wind

miterlimit

dash
— Function: gnome-canvas-shape-set-path-def (self <gnome-canvas-shape>) (def <gnome-canvas-path-def>)
— Method: set-path-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
— Function: gnome-canvas-shape-get-path-def (self <gnome-canvas-shape>) ⇒  (ret <gnome-canvas-path-def>)
— Method: get-path-def

This function returns the <gnome-canvas-path-def> that the shape currently uses. It adds a reference to the <gnome-canvas-path-def> and returns it, if there is not a <gnome-canvas-path-def> set for the shape it returns NULL.

shape
a GnomeCanvasShape
ret
a <gnome-canvas-path-def> or NULL if none is set for the shape.